diff options
author | Eugene Sandulenko | 2016-07-09 23:17:10 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | 996b909b0e880298d3e7bb3b7682968ab1e6199b (patch) | |
tree | 5061ce8c4e8eacd5e9f68d64045f80fb1caf9bb6 /engines/director/lingo/lingo.h | |
parent | 0b64438dbd3b2ff3579b47da9a46b274b2acde79 (diff) | |
download | scummvm-rg350-996b909b0e880298d3e7bb3b7682968ab1e6199b.tar.gz scummvm-rg350-996b909b0e880298d3e7bb3b7682968ab1e6199b.tar.bz2 scummvm-rg350-996b909b0e880298d3e7bb3b7682968ab1e6199b.zip |
DIRECTOR: Lingo: FLOAT actually has to have double precision. Switching.
Diffstat (limited to 'engines/director/lingo/lingo.h')
-rw-r--r-- | engines/director/lingo/lingo.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/director/lingo/lingo.h b/engines/director/lingo/lingo.h index ea41762f11..d8cd64df0f 100644 --- a/engines/director/lingo/lingo.h +++ b/engines/director/lingo/lingo.h @@ -82,7 +82,7 @@ struct Symbol { /* symbol table entry */ int type; union { int i; /* VAR */ - float f; /* FLOAT */ + double f; /* FLOAT */ ScriptData *defn; /* FUNCTION, PROCEDURE */ Common::String *s; /* STRING */ } u; @@ -97,14 +97,14 @@ struct Datum { /* interpreter stack type */ union { int i; - float f; + double f; Common::String *s; Symbol *sym; } u; Datum() { u.sym = NULL; type = VOID; } - float toFloat(); + double toFloat(); int toInt(); Common::String *toString(); @@ -173,7 +173,7 @@ public: void codeArgStore(); int codeId(Common::String &s); int codeId_(Common::String &s); - int codeFloat(float f); + int codeFloat(double f); static void c_xpop(); static void c_printtop(); |