Commit 78c180ea authored by Thomas Vander Stichele's avatar Thomas Vander Stichele
Browse files

another cast bites the dust

Original commit message from CVS:
another cast bites the dust
parent 8808565b
......@@ -310,8 +310,19 @@ guint64_to_gdouble (guint64 value)
return (gdouble) ((gint64) value);
static gdouble
gdouble_to_guint64 (gdouble value)
if (value < (gdouble) 9223372036854775808.) /* 1 << 63 */
return ((guint64) ((gint64) value));
value -= 9223372036854775808.;
return ((guint64) ((gint64) value)) + 1LL << 63;
#define guint64_to_gdouble(value) ((gdouble) value)
#define gdouble_to_guint64(value) ((guint64) (value))
#define guint64_to_gdouble(value) ((gdouble) (value))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment