<p>We also have a few UB associated with those negative values<br>
I compiled the VM with CFLAGS, LDFLAGS, BFLAGS and DYFLAGS:<br>
<code>            -fsanitize=undefined \</code></p>
<p>Then got:</p>
<pre><code>../../platforms/Cross/plugins/Squeak3D/b3dMain.c:1249:29: runtime error: left shift of negative value -8
../../platforms/Cross/plugins/Squeak3D/b3dMain.c:1251:25: runtime error: left shift of negative value -8
../../platforms/Cross/plugins/Squeak3D/b3dDraw.c:316:33: runtime error: left shift of negative value -18279
../../platforms/Cross/plugins/Squeak3D/b3dDraw.c:317:33: runtime error: left shift of negative value -18279
../../platforms/Cross/plugins/Squeak3D/b3dDraw.c:318:33: runtime error: left shift of negative value -18279
../../platforms/Cross/plugins/Squeak3D/b3dMain.c:775:40: runtime error: -4.36761e+10 is outside the range of representable values of type 'int'
</code></pre>
<p>I do not think that it is the source of problem, but yet another potential problem in the future in case of aggressive C compiler optimization...</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/468?email_source=notifications&email_token=AIJPEW47BMMTT3I7GLMWM6TQ5TSMRA5CNFSM4KFNXE22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI2QM4A#issuecomment-573900400">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW5S4UXDODUMQTJ7UJDQ5TSMRANCNFSM4KFNXE2Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AIJPEW4Y2ZLZ3TPOAENWJ5DQ5TSMRA5CNFSM4KFNXE22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI2QM4A.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/468?email_source=notifications\u0026email_token=AIJPEW47BMMTT3I7GLMWM6TQ5TSMRA5CNFSM4KFNXE22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI2QM4A#issuecomment-573900400",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/468?email_source=notifications\u0026email_token=AIJPEW47BMMTT3I7GLMWM6TQ5TSMRA5CNFSM4KFNXE22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI2QM4A#issuecomment-573900400",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>