r7324 - dumbhippo/trunk/client/common/glib/glib



Author: otaylor
Date: 2008-02-20 15:00:40 -0600 (Wed, 20 Feb 2008)
New Revision: 7324

Modified:
   dumbhippo/trunk/client/common/glib/glib/gstrfuncs.c
Log:
Backport GLib commit 5390 (fix g_strtoll for negative numbers) to our copy.

Modified: dumbhippo/trunk/client/common/glib/glib/gstrfuncs.c
===================================================================
--- dumbhippo/trunk/client/common/glib/glib/gstrfuncs.c	2008-02-20 20:39:16 UTC (rev 7323)
+++ dumbhippo/trunk/client/common/glib/glib/gstrfuncs.c	2008-02-20 21:00:40 UTC (rev 7324)
@@ -813,6 +813,8 @@
       errno = ERANGE;
       return G_MAXINT64;
     }
+  else if (negative)
+    return - (gint64) result;
   else
     return (gint64) result;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]