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

View File

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