aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'gtk')
-rw-r--r--gtk/DepGen.py4
-rwxr-xr-xgtk/PlatGTK.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/gtk/DepGen.py b/gtk/DepGen.py
index 20f4a0148..4feea8a9c 100644
--- a/gtk/DepGen.py
+++ b/gtk/DepGen.py
@@ -6,9 +6,9 @@
import sys
-sys.path.append("../")
+sys.path.append("..")
-import scripts.Dependencies as Dependencies
+from scripts import Dependencies
topComment = "# Created by DepGen.py. To recreate, run 'python DepGen.py'.\n"
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx
index 94f6c449f..66a2daac2 100755
--- a/gtk/PlatGTK.cxx
+++ b/gtk/PlatGTK.cxx
@@ -645,7 +645,7 @@ std::string UTF8FromLatin1(const char *s, int len) {
std::string utfForm(len*2 + 1, '\0');
size_t lenU = 0;
for (int i=0; i<len; i++) {
- unsigned int uch = static_cast<unsigned char>(s[i]);
+ const unsigned char uch = static_cast<unsigned char>(s[i]);
if (uch < 0x80) {
utfForm[lenU++] = uch;
} else {