<html><head><base href="x-msg://4141/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>It probably makes sense for me to repair this in the front-end.  Let me look into it.</div><div><br></div><div>On 18 Feb 2010, at 03:09, Jay K wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="hmmessage" style="font-size: 10pt; font-family: Verdana; ">Tony there are multiple related problems here.<br> <br>1) The front end likes to output values between 128 and 256 with type Int8 instead of Word8.<br>  e.g. in InitTypecell.<br>  And maybe similar for 16/32/64, I don't know.<br> <br>2) Even if the front end used the correct Word8 for them, m3back needs to use TWord.ToBytes vs. TInt.ToBytes for unsigned types, but TWord.ToBytes doesn't exist.<br> <br>I'll see what I can do.<br>I'll probably add TWord.ToBytes and if the value fits using it, accept it.<br> <br> - Jay<br><br>> Date: Thu, 18 Feb 2010 08:30:35 +0000<br>> To:<span class="Apple-converted-space"> </span><a href="mailto:m3commit@elegosoft.com">m3commit@elegosoft.com</a><br>> From:<span class="Apple-converted-space"> </span><a href="mailto:jkrell@elego.de">jkrell@elego.de</a><br>> Subject: [M3commit] CVS Update: cm3<br>><span class="Apple-converted-space"> </span><br>> CVSROOT: /usr/cvs<br>> Changes by: jkrell@birch. 10/02/18 08:30:35<br>><span class="Apple-converted-space"> </span><br>> Modified files:<br>> cm3/m3-sys/m3back/src/: M3x86.m3<span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><br>> Log message:<br>> more information when this assertion fails, as it now does:<br>><span class="Apple-converted-space"> </span><br>> == package C:\dev2\cm3.2\m3-libs\m3core ==<br>><span class="Apple-converted-space"> </span><br>> +++ C:\cm3\bin\cm3.exe -build -DROOT=C:/dev2/cm3.2 -DCM3_VERSION_TEXT=d5.8.2<br>><span class="Apple-converted-space"> </span><br>> new source -> compiling RTHooks.i3<br>> "..\src\runtime\common\RTHooks.i3", line 15: len:2 t:Int.8 CG_Bytes[t]:1 158<br>><span class="Apple-converted-space"> </span><br>> ***<br>> *** runtime error:<br>> *** <*ASSERT*> failed.<br>> *** file "..\src\M3x86.m3", line 1114<br>> ***<br>><span class="Apple-converted-space"> </span><br>> Stack trace:<br>> FP PC Procedure<br>> --------- --------- -------------------------------<br>> 0x12f5cc 0x43c230 init_int + 0x488 in ..\src\M3x86.m3<br>> 0x12f5f8 0x63f506 init_int + 0xa5 in ..\src\M3CG_Check.m3<br>> 0x12f638 0x4fe1ce Init_int + 0x1be in ..\src\misc\CG.m3<br>> 0x12f65c 0x4fe33e DumpInt + 0x34 in ..\src\misc\CG.m3<br>> 0x12f6a4 0x4fc86a DumpPendingNodes + 0x2c2 in ..\src\misc\CG.m3<br>> 0x12f6cc 0x4fa4c6 Bind_segment + 0xe0 in ..\src\misc\CG.m3<br>> 0x12f72c 0x4c71e8 GenLinkerInfo + 0x7d7 in ..\src\values\Module.m3<br>> 0x12f770 0x4c577c CompileInterface + 0x30a in ..\src\values\Module.m3<br>> 0x12f7a8 0x4c5252 Compile + 0x24d in ..\src\values\Module.m3<br>> 0x12f804 0x4aff65 DoCompile + 0x7cd in ..\src\misc\M3Front.m3<br>><span class="Apple-converted-space"> </span><br>> confusion here about signed vs. unsigned integers;<br>> the signed number 158 requires 2 bytes but the unsigned number 158<br>> only requirs 1 byte<br>><span class="Apple-converted-space"> </span><br><br></div></span></blockquote></div><br></body></html>