Kaynağa Gözat

Tinycc uses -NAN instead of 0xFF

Stefan Profanter 6 yıl önce
ebeveyn
işleme
f71b6cd563
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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