aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-08-13 11:04:15 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-08-13 11:04:15 +0000
commit1ead9eff6957727b40ae3eda8014033db9ba6392 (patch)
tree157ab5cbd53d94f3fdabe01d874898096040fd62 /wsutil
parent01b33e48942c23814278804e94f923939be6e0b4 (diff)
Another try to fix the cast problem.
svn path=/trunk/; revision=26001
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 acba2eaec4..4e46131fa6 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 > (size_t) 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);