Parcourir la source

HPCC-18966 Address invalid unsigned comparison

- Fixes invalid if less-than zero comparison on an unsigned

Signed-off-by: Rodrigo Pastrana <rodrigo.pastrana@lexisnexis.com>
Rodrigo Pastrana il y a 7 ans
Parent
commit
08a6f2f9ee
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      esp/services/ws_sql/SQL2ECL/SQLExpression.cpp

+ 1 - 1
esp/services/ws_sql/SQL2ECL/SQLExpression.cpp

@@ -552,7 +552,7 @@ void SQLBinaryExpression::toECLStringTranslateSource(
         }
 
     }
-    else if (translation1.length()<0 && translation2.length()<0)
+    else if (translation1.length() == 0 && translation2.length() == 0)
     {
         return;
     }