use lu and typecast to avoid warning for sizeof() between 32 and 64 bit hosts
This commit is contained in:
@@ -18,8 +18,8 @@ const char *fp_ident(void)
|
|||||||
"TomsFastMath (%s)\n"
|
"TomsFastMath (%s)\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Sizeofs\n"
|
"Sizeofs\n"
|
||||||
"\tfp_digit = %u\n"
|
"\tfp_digit = %lu\n"
|
||||||
"\tfp_word = %u\n"
|
"\tfp_word = %lu\n"
|
||||||
"\n"
|
"\n"
|
||||||
"FP_MAX_SIZE = %u\n"
|
"FP_MAX_SIZE = %u\n"
|
||||||
"\n"
|
"\n"
|
||||||
@@ -70,7 +70,7 @@ const char *fp_ident(void)
|
|||||||
#ifdef TFM_HUGE
|
#ifdef TFM_HUGE
|
||||||
" TFM_HUGE "
|
" TFM_HUGE "
|
||||||
#endif
|
#endif
|
||||||
"\n", __DATE__, sizeof(fp_digit), sizeof(fp_word), FP_MAX_SIZE);
|
"\n", __DATE__, (unsigned long)sizeof(fp_digit), (unsigned long)sizeof(fp_word), FP_MAX_SIZE);
|
||||||
|
|
||||||
if (sizeof(fp_digit) == sizeof(fp_word)) {
|
if (sizeof(fp_digit) == sizeof(fp_word)) {
|
||||||
strncat(buf, "WARNING: sizeof(fp_digit) == sizeof(fp_word), this build is likely to not work properly.\n",
|
strncat(buf, "WARNING: sizeof(fp_digit) == sizeof(fp_word), this build is likely to not work properly.\n",
|
||||||
|
Reference in New Issue
Block a user