]> granicus.if.org Git - onig/commitdiff
add cast in hash() for escape warning in Windows
authorK.Kosako <kosako@sofnec.co.jp>
Wed, 22 Aug 2018 05:51:35 +0000 (14:51 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Wed, 22 Aug 2018 05:51:35 +0000 (14:51 +0900)
src/euc_jp_prop.c
src/sjis_prop.c

index 8607bdcf82645cd2c1471e6f0f15d7e1ff889162..3f84aef46bda607a6664ae37436766c738fe8275 100644 (file)
@@ -1,5 +1,5 @@
 /* ANSI-C code produced by gperf version 3.1 */
-/* Command-line: gperf -pt -T -L ANSI-C -N onigenc_euc_jp_lookup_property_name --output-file euc_jp_prop.c euc_jp_prop.gperf  */
+/* Command-line: /usr/bin/gperf -pt -T -L ANSI-C -N onigenc_euc_jp_lookup_property_name --output-file gperf1.tmp euc_jp_prop.gperf  */
 /* Computed positions: -k'1,3' */
 
 #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
@@ -80,7 +80,7 @@ hash (register const char *str, register size_t len)
       56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
       56, 56, 56, 56, 56, 56
     };
-  return len + asso_values[(unsigned char)str[2]] + asso_values[(unsigned char)str[0]];
+  return (unsigned int )len + asso_values[(unsigned char)str[2]] + asso_values[(unsigned char)str[0]];
 }
 
 struct PropertyNameCtype *
index a84a9e6aab7a0339d926b5f83994624cfc32ff07..0d0c68f7ba8d66baa9463cd3218d71378237fdbd 100644 (file)
@@ -1,5 +1,5 @@
 /* ANSI-C code produced by gperf version 3.1 */
-/* Command-line: gperf -pt -T -L ANSI-C -N onigenc_sjis_lookup_property_name --output-file sjis_prop.c sjis_prop.gperf  */
+/* Command-line: /usr/bin/gperf -pt -T -L ANSI-C -N onigenc_sjis_lookup_property_name --output-file gperf2.tmp sjis_prop.gperf  */
 /* Computed positions: -k'1,3' */
 
 #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
@@ -80,7 +80,7 @@ hash (register const char *str, register size_t len)
       56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
       56, 56, 56, 56, 56, 56
     };
-  return len + asso_values[(unsigned char)str[2]] + asso_values[(unsigned char)str[0]];
+  return (unsigned int )len + asso_values[(unsigned char)str[2]] + asso_values[(unsigned char)str[0]];
 }
 
 struct PropertyNameCtype *