diff options
author | dreammaster | 2019-05-23 05:25:10 +0100 |
---|---|---|
committer | Paul Gilbert | 2019-05-24 18:21:07 -0700 |
commit | 8f9fcec16c41ba4bfc51e7b92bdc701f5a2a2e6b (patch) | |
tree | 0dbeaf64dcdbeac567d780a853052e4db01600f8 /engines/glk/tads/tads2/line_source_file.cpp | |
parent | 5381930e8b09f61b8c7969db4a657067586be897 (diff) | |
download | scummvm-rg350-8f9fcec16c41ba4bfc51e7b92bdc701f5a2a2e6b.tar.gz scummvm-rg350-8f9fcec16c41ba4bfc51e7b92bdc701f5a2a2e6b.tar.bz2 scummvm-rg350-8f9fcec16c41ba4bfc51e7b92bdc701f5a2a2e6b.zip |
GLK: TADS2: Further compilation fixes
Diffstat (limited to 'engines/glk/tads/tads2/line_source_file.cpp')
-rw-r--r-- | engines/glk/tads/tads2/line_source_file.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/glk/tads/tads2/line_source_file.cpp b/engines/glk/tads/tads2/line_source_file.cpp index affc3cd587..c2942a8890 100644 --- a/engines/glk/tads/tads2/line_source_file.cpp +++ b/engines/glk/tads/tads2/line_source_file.cpp @@ -31,6 +31,7 @@ namespace Glk { namespace TADS { namespace TADS2 { +#define BYTE_MAX 0xff /* initialize a pre-allocated linfdef, skipping debugger page setup */ void linfini2(mcmcxdef *mctx, linfdef *linf, @@ -404,7 +405,6 @@ void linfglop2(lindef *lin, uchar *buf) int linfwrt(lindef *lin, osfildef *fp) { #define linf ((linfdef *)lin) -#define BYTE_MAX 255 uchar buf[BYTE_MAX + 6]; size_t len; uint pgcnt; @@ -440,7 +440,7 @@ int linfwrt(lindef *lin, osfildef *fp) int linfload(osfildef *fp, dbgcxdef *dbgctx, errcxdef *ec, tokpdef *path) { linfdef *linf; - uchar buf[UCHAR_MAX + 6]; + uchar buf[BYTE_MAX + 6]; uint pgcnt; uchar *objp; mcmon *objn; |