From 0bdaed49c132c4cfd69082fbe5fe6b9bd963165e Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Mon, 25 Apr 2016 15:00:59 +0200 Subject: [PATCH] Poincare: Remove a warning Change-Id: I222c2209530b61e56eac2868fcfb0fbf036ec782 --- poincare/src/context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poincare/src/context.cpp b/poincare/src/context.cpp index 40ac15209..422306e49 100644 --- a/poincare/src/context.cpp +++ b/poincare/src/context.cpp @@ -13,7 +13,7 @@ Context::~Context() { } Expression * Context::operator[](const char * symbol_name) const { - for (int16_t i=0; ikMaxContextPairs; i++) { + for (uint16_t i=0; ikMaxContextPairs; i++) { ContextPair p = m_pairs[i]; if (p.name != NULL && strcmp(p.name, symbol_name) == 0) { return p.expression; @@ -23,7 +23,7 @@ Expression * Context::operator[](const char * symbol_name) const { } void Context::setExpressionForSymbolName(Expression * expression, const char * symbol_name) { - for (int16_t i=0; ikMaxContextPairs; i++) { + for (uint16_t i=0; ikMaxContextPairs; i++) { ContextPair * p = &m_pairs[i]; if (p->name == NULL) { // FIXME: Should be copied or retained!