From 7f4df82e7a81aa5a7887856f20d2cb2f0b0f1727 Mon Sep 17 00:00:00 2001 From: mattias Date: Tue, 4 Feb 2025 18:46:21 +0100 Subject: [PATCH] pas2js: make typeinfo(char) a tTypeInfoInteger descendant --- utils/pas2js/dist/rtl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/pas2js/dist/rtl.js b/utils/pas2js/dist/rtl.js index ac6c47a7f6..518b6afe39 100644 --- a/utils/pas2js/dist/rtl.js +++ b/utils/pas2js/dist/rtl.js @@ -1350,7 +1350,7 @@ var rtl = { newBaseInt("longword",0,0xffffffff,5); newBaseInt("nativeint",-0x10000000000000,0xfffffffffffff,6); newBaseInt("nativeuint",0,0xfffffffffffff,7); - newBaseTI("char",2 /* tkChar */); + newBaseInt("char",0,65535,3 /* word */).kind=2 /* tkChar */; newBaseTI("string",3 /* tkString */); newBaseTI("tTypeInfoEnum",4 /* tkEnumeration */,rtl.tTypeInfoInteger); newBaseTI("tTypeInfoSet",5 /* tkSet */);