Re: coerce a number to a short

Mark Evenson <[email protected]> Wed, 4 Dec 2019 21:37:00 +0100
Newsgroups gmane.editors.j.devel
Message-ID <2D771F14-6B28-44C1-A448-FD84F3B94D0E__9488.79686636559$1575491859$gmane$org@panix.com>

> On Nov 27, 2019, at 05:53, somewhat-functional-programmer <[email protected]> wrote:
> 
> Here's a workaround in the meantime (though it's more verbose)... using java.lang.Short.reverseBytes(short s) as the test case[1]:
> 
> ;; no such method failure
> (jstatic "reverseBytes" "java.lang.Short" #x7f)


[Tests via ABCL-PROVE added.][ABCL-PROVE]

[ABCL-PROVE]: https://github.com/armedbear/abcl/pull/131

-- 
"A screaming comes across the sky.  It has happened before but there is nothing 
to compare to it now."