ytool: debug COMPARE_N_TYPE

This commit is contained in:
2024-05-06 00:27:56 +02:00
parent 76472e9492
commit 904f25d0d2
2 changed files with 3 additions and 2 deletions
Binary file not shown.
+3 -2
View File
@@ -119,9 +119,10 @@ long int PRECISION_TYPE_L_DOUBLE = 100000000000000;
/*char *str_diff = type##_TO_STR(diff), *str_a = type##_TO_STR(*(type*)a), *str_b = type##_TO_STR(*(type*)b);\ /*char *str_diff = type##_TO_STR(diff), *str_a = type##_TO_STR(*(type*)a), *str_b = type##_TO_STR(*(type*)b);\
PRINT_DEBUG_(" diff = %s a=%s b=%s PRECISION : %ld\n",str_diff, str_a, str_b, PRECISION_##type);\ PRINT_DEBUG_(" diff = %s a=%s b=%s PRECISION : %ld\n",str_diff, str_a, str_b, PRECISION_##type);\
free(str_diff); free(str_a); free(str_b);\ free(str_diff); free(str_a); free(str_b);\
*/if ((diff < 1) && (diff > -1) ) return 0; \ */\
if (diff <= -1) return -1; \ if (diff <= -1) return -1; \
return 1; \ if (diff >= 1) return 1; \
return 0; \
} \ } \
\ \
void COPY_ARRAY_##type(type *dst, const type *src, size_t size){ \ void COPY_ARRAY_##type(type *dst, const type *src, size_t size){ \