dbus/dbus dbus-sysdeps.c,1.84,1.85

Havoc Pennington hp@freedesktop.org
Tue Jan 11 14:36:00 PST 2005


Update of /cvs/dbus/dbus/dbus
In directory gabe:/tmp/cvs-serv29712

Modified Files:
	dbus-sysdeps.c 
Log Message:
fix doh! in test for double parsing


Index: dbus-sysdeps.c
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-sysdeps.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -d -r1.84 -r1.85
--- dbus-sysdeps.c	3 Jan 2005 07:16:12 -0000	1.84
+++ dbus-sysdeps.c	11 Jan 2005 22:35:58 -0000	1.85
@@ -3528,9 +3528,9 @@
       _dbus_warn ("Failed to parse double");
       exit (1);
     }
-  if (ABS (0xff - val) < 1e-6)
+  if (ABS (0xff - val) > 1e-6)
     {
-      _dbus_warn ("Failed to parse 0xff correctly, got: %f", val);
+      _dbus_warn ("Failed to parse 0xff correctly, got: %f\n", val);
       exit (1);
     }
   if (pos != 4)



More information about the dbus-commit mailing list