fix doh! in test for double parsing
authorHavoc Pennington <hp@redhat.com>
Tue, 11 Jan 2005 22:35:58 +0000 (22:35 +0000)
committerHavoc Pennington <hp@redhat.com>
Tue, 11 Jan 2005 22:35:58 +0000 (22:35 +0000)
dbus/dbus-sysdeps.c

index be9d8e9..c1ff46c 100644 (file)
@@ -3528,9 +3528,9 @@ _dbus_sysdeps_test (void)
       _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)