From 134ab02ba6e20198b31278bfc53ebf89032f5eb5 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 11 Apr 2012 15:49:11 +1000 Subject: [PATCH] Change ragel index variables to avoid signed warns --- json.cpp.rl | 7 ++++--- version.cpp.rl | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/json.cpp.rl b/json.cpp.rl index f714b846..67bcc807 100644 --- a/json.cpp.rl +++ b/json.cpp.rl @@ -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 fsmstack; + size_t top = 0; + int cs; + deque fsmstack; deque nodestack; const char *p = start, diff --git a/version.cpp.rl b/version.cpp.rl index 0fa02121..c5bca67a 100644 --- a/version.cpp.rl +++ b/version.cpp.rl @@ -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;