Explorar o código

Tinycc uses -NAN instead of 0xFF

Stefan Profanter %!s(int64=6) %!d(string=hai) anos
pai
achega
f71b6cd563
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      tests/check_types_builtin.c

+ 2 - 2
tests/check_types_builtin.c

@@ -810,8 +810,8 @@ START_TEST(UA_Float_encodeShallWorkOnExample) {
         {0x00, 0x00, 0x80, 0x7F}, // INF
         {0x00, 0x00, 0x80, 0xFF} // -INF
     };
-#ifdef _WIN32
-    // on WIN32 -NAN is encoded differently
+#if defined(_WIN32) || defined(__TINYC__)
+    // on WIN32 or TinyCC -NAN is encoded differently
     result[4][3] = 127;
 #endif