<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Nicolas,<br>
    <br>
    Done. It is
    <a class="moz-txt-link-freetext" href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/376">https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/376</a><br>
    <br>
    Thanks,<br>
    <pre class="moz-signature" cols="72">-- 
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis-smalltalk.org">www.cuis-smalltalk.org</a>
<a class="moz-txt-link-freetext" href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a class="moz-txt-link-freetext" href="https://github.com/jvuletich">https://github.com/jvuletich</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/juan-vuletich-75611b3">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
@JuanVuletich</pre>
    <br>
    <br>
    On 3/12/2019 1:05 PM, Nicolas Cellier wrote:
    <blockquote
cite="mid:CAKnRiT7gQcJS9t_oS8Jk=VS_amw7u3TnxQixOm5UGy-r+K7bWA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hi Juan,</div>
        <div>good find. Can you open an issue on github opensmalltalk
          repo?<br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">Le mar. 12 mars 2019 à 16:05,
          Juan Vuletich <<a moz-do-not-send="true"
            href="mailto:JuanVuletich@zoho.com">JuanVuletich@zoho.com</a>>
          a écrit :<br>
        </div>
        <blockquote class="gmail_quote" style="margin: 0px 0px 0px
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;"> <br>
          Hi Folks,<br>
          <br>
          I just found a bug in an edge case in #truncated primitive in
          64 bits <br>
          Cog Spur (tested on Linux, both in Cuis and Squeak). It is
          when <br>
          #truncated a Float that is slightly larger than SmallInteger
          maxVal.<br>
          <br>
          SmallInteger maxVal   -->  1152921504606846975<br>
          <br>
          If we take (1152921504606846975.0 predecessor), to ensure a
          Float that <br>
          still fits in a SmallInteger, everything works fine:<br>
          <br>
          1152921504606846975.0 predecessor asTrueFraction   --> 
          1152921504606846848<br>
          1152921504606846975.0 predecessor asTrueFraction   --> 
          class SmallInteger<br>
          1152921504606846975.0 predecessor truncated   --> 
          1152921504606846848<br>
          <br>
          But taking 1152921504606846976.0:<br>
          <br>
          1152921504606846976.0 asTrueFraction   --> 
          1152921504606846976 (correct <br>
          result)<br>
          1152921504606846976.0 asTrueFraction class   --> 
          LargePositiveInteger <br>
          (ok. Doesn't fit in SmallInteger)<br>
          1152921504606846976.0 truncated   -->  -1152921504606846976<br>
          <br>
          The primitive is answering SmallInteger minVal, (a negative
          number!) but <br>
          it should fail, as the correct result doesn't fit in a
          SmallInteger.<br>
          <br>
          Thanks,<br>
          <br>
          -- <br>
          Juan Vuletich<br>
          <a moz-do-not-send="true" href="http://www.cuis-smalltalk.org"
            rel="noreferrer" target="_blank">www.cuis-smalltalk.org</a><br>
          <a moz-do-not-send="true"
            href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev"
            rel="noreferrer" target="_blank">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a><br>
          <a moz-do-not-send="true" href="https://github.com/jvuletich"
            rel="noreferrer" target="_blank">https://github.com/jvuletich</a><br>
          <a moz-do-not-send="true"
            href="https://www.linkedin.com/in/juan-vuletich-75611b3"
            rel="noreferrer" target="_blank">https://www.linkedin.com/in/juan-vuletich-75611b3</a><br>
          @JuanVuletich<br>
          <br>
          <br>
        </blockquote>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">
</pre>
  </body>
</html>