D 2023-04-16T23:02:10.705
J icomment The\slast\sissue\sis\sa\sgeneral\sproblem\swith\sbyte\scompiler\sand\sindex\svalues.\sThis\scomment\sfrom\stclUtil.c\sexplains:\r\n\r\n\s*\sTclIndexEncode\s--\r\n\s*\r\n\s*\s\s\s\s\s\sParse\sobjPtr\sto\sdetermine\sif\sit\sis\san\sindex\svalue.\sTwo\scases\r\n\s*\tare\spossible.\s\sThe\svalue\sobjPtr\smight\sbe\sparsed\sas\san\sabsolute\r\n\s*\tindex\svalue\sin\sthe\sC\ssigned\sint\srange.\s\sNote\sthat\sthis\sincludes\r\n\s*\tindex\svalues\sthat\sare\sintegers\sas\spresented\sand\sit\sincludes\sindex\r\n\s*\s\s\s\s\s\sarithmetic\sexpressions.\sThe\sabsolute\sindex\svalues\sthat\scan\sbe\r\n\s*\tdirectly\smeaningful\sas\san\sindex\sinto\seither\sa\slist\sor\sa\sstring\sare\r\n\s*\tthose\sinteger\svalues\s>=\sTCL_INDEX_START\s(0)\r\n\s*\tand\s<\sINT_MAX.\r\n\s*\s\s\s\s\s\sThe\slargest\sstring\ssupported\sin\sTcl\s8\shas\sbytelength\sINT_MAX.\r\n\s*\s\s\s\s\s\sThis\smeans\sthe\slargest\ssupported\scharacter\slength\sis\salso\sINT_MAX,\r\n\s*\s\s\s\s\s\sand\sthe\sindex\sof\sthe\slast\scharacter\sin\sa\sstring\sof\slength\sINT_MAX\r\n\s*\s\s\s\s\s\sis\sINT_MAX-1.\r\n\r\nIt\slooks\slike\sthis\swas\smissed\swhen\smoving\sfrom\s32-bit\sindices\sto\s64-bit\sindices.
J login griffin
J mimetype text/plain
K fa00fbbbabe2d77904ac0086884d5debf9c529a5
U griffin
Z 316cf323f1d9cc8b00554be8ab271ec4