Bugfix: wrong interpreter called due to invalid overriding (#4008)

This commit is contained in:
Hombre57
2017-09-19 01:07:25 +02:00
parent 97afbdc5c5
commit 77a86f5d1e
4 changed files with 25 additions and 25 deletions

View File

@@ -1102,7 +1102,7 @@ public:
sprintf (buffer, "%d", a);
return buffer;
}
virtual double toDouble (Tag* t, int ofs)
virtual double toDouble (const Tag* t, int ofs)
{
int a = Interpreter::toInt (t, ofs);
@@ -1113,7 +1113,7 @@ public:
return 0.;
}
}
virtual int toInt (Tag* t, int ofs, TagType astype)
virtual int toInt (const Tag* t, int ofs, TagType astype)
{
int a = Interpreter::toInt (t, ofs, astype);