Change ragel used types to avoid size warnings

This commit is contained in:
Danny Robson 2011-08-08 16:22:25 +10:00
parent 4091a5874d
commit 4c96950130
2 changed files with 3 additions and 3 deletions

View File

@ -248,8 +248,8 @@ namespace json {
const char *stop) { const char *stop) {
bool __success = true; bool __success = true;
json::node *__root = NULL; json::node *__root = NULL;
int cs, top = 0; size_t cs, top = 0;
deque <int> fsmstack; deque <size_t> fsmstack;
deque <parse_context> nodestack; deque <parse_context> nodestack;
const char *p = start, const char *p = start,

View File

@ -99,7 +99,7 @@ void
version::parse (const string& str) { version::parse (const string& str) {
unsigned int current; unsigned int current;
int cs; size_t 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;