summaryrefslogtreecommitdiff
path: root/src/java-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/java-utils.c')
-rw-r--r--src/java-utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java-utils.c b/src/java-utils.c
index be6a181..1ea7783 100644
--- a/src/java-utils.c
+++ b/src/java-utils.c
@@ -297,9 +297,9 @@ get_package_name_from_class_file (char *fname)
if (package != NULL) {
int j;
- for (j = length; (j >= 0) && (end == 0); j--)
+ for (j = (int) length; (j >= 0) && (end == 0); j--)
if (package[j] == '/')
- end = j;
+ end = (guint16) j;
char *package_padded = g_strndup (package, end);
g_free(package);
package = package_padded;