aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-08-13 10:37:24 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-08-13 10:37:24 +0000
commit01b33e48942c23814278804e94f923939be6e0b4 (patch)
tree3ef5a842d16e6d6bceb8ba7049d79ab003b59cfe /wsutil
parentb683d25860d4d3be1b723aec5816f1903f47e2de (diff)
Add a cast to avoid a warning.
svn path=/trunk/; revision=26000
Diffstat (limited to 'wsutil')
-rw-r--r--wsutil/file_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wsutil/file_util.c b/wsutil/file_util.c
index 431fb40967..acba2eaec4 100644
--- a/wsutil/file_util.c
+++ b/wsutil/file_util.c
@@ -238,7 +238,7 @@ ws_stdio_stat (const gchar *filename,
while (len > 0 && G_IS_DIR_SEPARATOR (wfilename[len-1]))
len--;
if (len > 0 &&
- (!g_path_is_absolute (filename) || len > g_path_skip_root (filename) - filename))
+ (!g_path_is_absolute (filename) || len > (size_t) g_path_skip_root (filename) - filename))
wfilename[len] = '\0';
retval = _wstat (wfilename, (struct _stat *) buf);