Переглянути джерело

HPCC-12349 Updated based on review

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Anthony Fishbeck 10 роки тому
батько
коміт
cbef937af8
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      system/jlib/jstring.cpp

+ 1 - 1
system/jlib/jstring.cpp

@@ -1482,7 +1482,7 @@ int utf8CharLen(const unsigned char *ch, unsigned maxsize)
         return 1;
 
     unsigned char len = utf8CharLen(*ch);
-    if (maxsize!=(unsigned)-1 && len>maxsize)
+    if (len>maxsize)
         return 0;
     for (unsigned pos = 1; pos < len; pos++)
         if ((ch[pos] < 128) || (ch[pos] >= 192))