<div>Is this correct behavior?</div><div><br></div><div>CL-USER(17): (type-of 1234567898723618080928927362387)</div><div>(INTEGER 2147483648)</div><div><br></div><div><br></div><div><br></div><div>The relevant java code is in Bignum.java: (the value field is a java BigInteger) </div>
<div><br></div><div><div> @Override</div><div> public LispObject typeOf()</div><div> {</div><div> if (value.signum() > 0)</div><div> return list(Symbol.INTEGER,</div><div> new Bignum((long)Integer.MAX_VALUE + 1));</div>
<div> return Symbol.BIGNUM;</div><div> }</div></div><div><br></div><div><br></div><div><br></div><div>for comparison:</div><div><div>CL-USER(23): (type-of -1234567898723618080928927362387)</div><div>BIGNUM</div></div>
<div><br></div><div><br></div><div>which makes intuitive sense.</div><div><br></div><div><br></div><div><br></div><div><br></div>