seed r384 - trunk/libseed



Author: hortont
Date: Mon Dec  1 04:26:45 2008
New Revision: 384
URL: http://svn.gnome.org/viewvc/seed?rev=384&view=rev

Log:
Print doubles, not floats.


Modified:
   trunk/libseed/seed-types.c

Modified: trunk/libseed/seed-types.c
==============================================================================
--- trunk/libseed/seed-types.c	(original)
+++ trunk/libseed/seed-types.c	Mon Dec  1 04:26:45 2008
@@ -1157,7 +1157,7 @@
 	if (JSValueIsBoolean(ctx, val)
 		|| JSValueIsNumber(ctx, val))
 	{
-		buf = g_strdup_printf("%f", JSValueToNumber(ctx, val, NULL));
+		buf = g_strdup_printf("%lf", JSValueToNumber(ctx, val, NULL));
 	}
 	else if (JSValueIsNull(ctx, val)
 			 || JSValueIsUndefined(ctx, val))



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