mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
Merge "Poincare: Remove a warning"
This commit is contained in:
@@ -13,7 +13,7 @@ Context::~Context() {
|
||||
}
|
||||
|
||||
Expression * Context::operator[](const char * symbol_name) const {
|
||||
for (int16_t i=0; i<this->kMaxContextPairs; i++) {
|
||||
for (uint16_t i=0; i<this->kMaxContextPairs; 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; i<this->kMaxContextPairs; i++) {
|
||||
for (uint16_t i=0; i<this->kMaxContextPairs; i++) {
|
||||
ContextPair * p = &m_pairs[i];
|
||||
if (p->name == NULL) {
|
||||
// FIXME: Should be copied or retained!
|
||||
|
||||
Reference in New Issue
Block a user