ai_epsilon bug fixed in C

pull/5231/head
je3f0o 2023-09-15 19:44:57 +08:00
parent 59b1234496
commit 6324768ca8
1 changed files with 2 additions and 2 deletions

View File

@ -292,7 +292,7 @@ typedef unsigned int ai_uint;
#ifdef __cplusplus #ifdef __cplusplus
constexpr ai_real ai_epsilon = (ai_real) 1e-6; constexpr ai_real ai_epsilon = (ai_real) 1e-6;
#else #else
const ai_real ai_epsilon = (ai_real) 1e-6; #define ai_epsilon ((ai_real)1e-6)
#endif #endif
/* Support for big-endian builds */ /* Support for big-endian builds */
@ -343,4 +343,4 @@ const ai_real ai_epsilon = (ai_real) 1e-6;
#define AI_COUNT_OF(X) (sizeof(X) / sizeof((X)[0])) #define AI_COUNT_OF(X) (sizeof(X) / sizeof((X)[0]))
#endif // !! AI_DEFINES_H_INC #endif // !! AI_DEFINES_H_INC