diff --git a/ytest_t/libytest.so b/ytest_t/libytest.so index 91b8db2..14eb8ab 100644 Binary files a/ytest_t/libytest.so and b/ytest_t/libytest.so differ diff --git a/ytools_t/src/tools_t/tools_t.c b/ytools_t/src/tools_t/tools_t.c index 09bd460..6c8a59a 100644 --- a/ytools_t/src/tools_t/tools_t.c +++ b/ytools_t/src/tools_t/tools_t.c @@ -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);\ 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);\ - */if ((diff < 1) && (diff > -1) ) return 0; \ + */\ 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){ \