<div dir="ltr">Thanks!<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-15 4:24 GMT+02:00 David T. Lewis <span dir="ltr">&lt;<a href="mailto:lewis@mail.msen.com" target="_blank">lewis@mail.msen.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
<br>
On Sun, Sep 13, 2015 at 07:17:51PM -0400, David T. Lewis wrote:<br>
&gt;<br>
&gt; On Sun, Sep 13, 2015 at 10:23:42PM +0200, Nicolai Hess wrote:<br>
&gt; &gt;<br>
&gt; &gt; I am about to close some old mantis reports.<br>
&gt; &gt;<br>
&gt; &gt; There are two issues related to the vm and easy to solve ( I think).<br>
&gt; &gt;<br>
&gt; &gt; <a href="http://bugs.squeak.org/view.php?id=7265" rel="noreferrer" target="_blank">http://bugs.squeak.org/view.php?id=7265</a><br>
&gt; &gt;<br>
&gt; &gt; 0007265: Bug in Matrix2x3Plugin okayIntValue:<br>
&gt; &gt; Method<br>
&gt; &gt; okayIntValue: value<br>
&gt; &gt; uses argument to compare with lower bound, m23ResultX for upper bound.<br>
&gt; &gt;<br>
&gt; &gt; okayIntValue: value<br>
&gt; &gt;     ^(value &gt;= -1073741824 asFloat and:[m23ResultX &lt;= 1073741823 asFloat])<br>
&gt; &gt;<br>
&gt; &gt; should be:<br>
&gt; &gt; okayIntValue: value<br>
&gt; &gt;     ^(value &gt;= -1073741824 asFloat and:[value &lt;= 1073741823 asFloat])<br>
&gt; &gt;<br>
&gt; &gt; I looked at the Matrix2x3Plugin code, and the wrong comparsion<br>
&gt; &gt; is still there.<br>
&gt;<br>
&gt; I am quite sure you are right about this, just from looking at the code.<br>
&gt; But I do want to check - the method is from ar 1998, so it has been in all<br>
&gt; the VMs for a very long time. How did you find the problem? Is there a<br>
&gt; test or an example that shows the issue?<br>
&gt;<br>
&gt; After fixing the method as you suggest, it will test for integer values<br>
&gt; with bit values in the range 11000000000000000000000000000000 through<br>
&gt; 00111111111111111111111111111111, which presumably maps to a range of<br>
&gt; acceptable values for use in the Matrix2x3Plugin floating point operations.<br>
&gt; So that looks quite reasonable, but I am puzzled that this check has been<br>
&gt; wrong since 1998, so that is why I ask.<br>
&gt;<br>
<br>
</div></div>I closed issue 7265. Eliot added your fix to Spur/Cog I did likewise for<br>
VMM trunk (interpreter VM).<br>
<br>
Dave<br>
<br>
</blockquote></div><br></div>