summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuo Jinghua <sunmoon1997@gmail.com>2010-01-10 22:26:53 +0800
committerLuo Jinghua <sunmoon1997@gmail.com>2010-01-10 22:26:53 +0800
commitf582fa32b5bc2393098a57bc4b977913a7bfbf97 (patch)
tree80e3d705be298f8e0272920add0689dddb6ca4d9
parentf757c0694efe9546f4fd72204cdadddfbf6c9f4c (diff)
use size_t for table size
-rw-r--r--singlebytecodec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/singlebytecodec.h b/singlebytecodec.h
index 16d9800..08aef9b 100644
--- a/singlebytecodec.h
+++ b/singlebytecodec.h
@@ -11,9 +11,9 @@ struct encoding_map {
typedef struct _SingleByteCodecState {
const char *encoding;
const int *decoding_table;
- int decoding_table_size;
+ size_t decoding_table_size;
const struct encoding_map *encoding_map;
- int encoding_map_size;
+ size_t encoding_map_size;
} SingleByteCodecState;
int