Skip to content

Commit 9527b1c

Browse files
rui-mozhztheplayer
authored andcommitted
fix normalize function (#13)
1 parent 32568a3 commit 9527b1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/src/gandiva/precompiled/arithmetic_ops.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ NUMERIC_DATE_TYPES(BINARY_RELATIONAL_NAN, greater_than_or_equal_to_with_nan, >=)
145145
gdv_##OUT_TYPE normalize_##IN_TYPE(gdv_##IN_TYPE in) { \
146146
if (isnan(in)) { \
147147
return 0.0 / 0.0; \
148-
} else if (in < 0 && std::abs(in) < 0.0000001) { \
148+
} else if (std::abs(in) < 0.0000001) { \
149149
return 0.0; \
150150
} else { \
151151
return in; \

0 commit comments

Comments
 (0)