diff options
author | Stephan Arts <stephan@xfce.org> | 2008-06-29 21:29:20 +0000 |
---|---|---|
committer | Stephan Arts <stephan@xfce.org> | 2008-06-29 21:29:20 +0000 |
commit | 6998887b7c33f8a3767188311b484d86401aaa44 (patch) | |
tree | 2a1f4c7ce44d78dfe10e6f369b035667ca0e83d9 /common | |
parent | 6bf77e8905ac890973a686c1d6d394f0f89a4004 (diff) | |
download | xfconf-6998887b7c33f8a3767188311b484d86401aaa44.tar.gz |
Applied patch from Nick (Bug #4184)
Fixes compiler-warnings
Fixes XCursor Xrdb issue
(Old svn revision: 27186)
Diffstat (limited to 'common')
-rw-r--r-- | common/xfconf-types.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/xfconf-types.c b/common/xfconf-types.c index 0ae09ac..9b7cb7a 100644 --- a/common/xfconf-types.c +++ b/common/xfconf-types.c @@ -86,7 +86,7 @@ gvalue_from_short(const GValue *src_value, } xfconf_g_value_set_uint16(dest_value, (guint16)dest); } else if(G_VALUE_TYPE(dest_value) == XFCONF_TYPE_INT16) { - if(dest > SHRT_MAX || dest < SHRT_MIN) { + if(dest > (guint64) SHRT_MAX || dest < (guint64) SHRT_MIN) { g_warning("Converting type \"%s\" to \"%s\" results in overflow", G_VALUE_TYPE_NAME(src_value), G_VALUE_TYPE_NAME(dest_value)); |