[M3devel] Enumeration or subrange value out of range
Hendrik Boom
hendrik at topoi.pooq.com
Mon Nov 29 20:24:22 CET 2010
On Mon, Nov 29, 2010 at 11:14:56AM -0600, Ken Durocher wrote:
> I am trying to write the Tiny Encryption Algorithm (TEA) in Modula-3, but I
> ran into a problem. The code compiles fine, but I get a runtime error. I'm
> running 5.8.6 RELEASE on AMD64.
>
> P.S. Is there already an unsigned int32 type? Is there a better way to
> create one?
There's a signed int32, and an unsigned int31, which is designed to fit
into a signed 32. The closes you can come to unsigned int32 is probably
WORD. Look up Word.T.
Unless you're using a 64-bit machine, in which case you get int64 and
unsigned int63 for free, I suppose.
-- hendrik
More information about the M3devel
mailing list