From 4c96950130931aed692743a3241007d3257236c3 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 8 Aug 2011 16:22:25 +1000 Subject: [PATCH] Change ragel used types to avoid size warnings --- json.cpp.rl | 4 ++-- version.cpp.rl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/json.cpp.rl b/json.cpp.rl index eff3755d..6d4530ca 100644 --- a/json.cpp.rl +++ b/json.cpp.rl @@ -248,8 +248,8 @@ namespace json { const char *stop) { bool __success = true; json::node *__root = NULL; - int cs, top = 0; - deque fsmstack; + size_t cs, top = 0; + deque fsmstack; deque nodestack; const char *p = start, diff --git a/version.cpp.rl b/version.cpp.rl index 4504349b..2ea51ac3 100644 --- a/version.cpp.rl +++ b/version.cpp.rl @@ -99,7 +99,7 @@ void version::parse (const string& str) { unsigned int current; - int cs; + size_t cs; const char *p = str.data (), *pe = str.data () + str.size (), *eof = pe;