From 34269aa04586b2c0f94967af2f836c2b40d9f58b Mon Sep 17 00:00:00 2001 From: c9s Date: Tue, 10 Nov 2015 19:36:01 +0800 Subject: [PATCH] Change compare_type from char to int --- bench_str.csv | 1 + include/r3.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bench_str.csv b/bench_str.csv index 205a21a..293b043 100644 --- a/bench_str.csv +++ b/bench_str.csv @@ -618,3 +618,4 @@ 1447155019,13581101.21,5484972.04,45100.04,2192286.64 1447155029,13116025.99,5830570.40,52428.80,2522486.73 1447155066,13645222.60,5724509.20,62601.55,2514659.99 +1447155349,11915902.67,5912124.62,58254.22,2421361.02 diff --git a/include/r3.h b/include/r3.h index f16d199..f8732a2 100644 --- a/include/r3.h +++ b/include/r3.h @@ -39,7 +39,7 @@ struct _node { // edges are mostly less than 255 unsigned int edge_len; - unsigned char compare_type; // compare_type: pcre, opcode, string + unsigned int compare_type; // compare_type: pcre, opcode, string unsigned char endpoint; // endpoint, should be zero for non-endpoint nodes unsigned char ov_cnt; // capture vector array size for pcre