DavidKinder / Inform6

The latest version of the Inform 6 compiler, used for generating interactive fiction games.
http://inform-fiction.org/
Other
199 stars 32 forks source link

Dict flags fail when DICT_WORD_SIZE=31 and DICT_CHAR_SIZE=4 #268

Closed erkyrath closed 4 months ago

erkyrath commented 4 months ago

This function stops working when the compile options are set that large:

(Glulx, and I've omitted the boilerplate to set up Glk display streams.)

[ showdict dictlen entrylen j wd;
    dictlen = #dictionary_table-->0;
    entrylen = DICT_ENTRY_BYTES;
    for (j=0 : j<dictlen : j++) {
        wd = #dictionary_table + WORDSIZE + entrylen*j;
    }
];

A preliminary check indicates that the dictionary format is correct, but the constant #dict_par1 is wrong.