Change ragel index variables to avoid signed warns

This commit is contained in:
Danny Robson 2012-04-11 15:49:11 +10:00
parent 5f6504de73
commit 134ab02ba6
2 changed files with 6 additions and 5 deletions

View File

@ -226,7 +226,7 @@ struct parse_context {
%success %success
>{ __success = false; }; >{ __success = false; };
write data; write data;
}%% }%%
@ -249,8 +249,9 @@ namespace json {
const char *stop) { const char *stop) {
bool __success = true; bool __success = true;
json::node *__root = NULL; json::node *__root = NULL;
size_t cs, top = 0; size_t top = 0;
deque <size_t> fsmstack; int cs;
deque <int> fsmstack;
deque <parse_context> nodestack; deque <parse_context> nodestack;
const char *p = start, const char *p = start,

View File

@ -109,7 +109,7 @@ void
version::parse (const string& str) { version::parse (const string& str) {
unsigned int current; unsigned int current;
size_t cs; int cs;
const char *p = str.data (), const char *p = str.data (),
*pe = str.data () + str.size (), *pe = str.data () + str.size (),
*eof = pe; *eof = pe;
@ -123,7 +123,7 @@ void
version::parse (const char *str) { version::parse (const char *str) {
unsigned int current; unsigned int current;
size_t cs; int cs;
const char *p = str, const char *p = str,
*pe = str + strlen (str), *pe = str + strlen (str),
*eof = pe; *eof = pe;