gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] comparing BYTE, WORD, and DWORD values


From: SiTex Graphics
Subject: [Gm2] comparing BYTE, WORD, and DWORD values
Date: Mon, 30 Apr 2012 17:28:38 -0400

Hi Gaius,

Thanks for adding bit field support to gm2.  That should simplify
working with GTK and other libs.  Also, thanks for looking into the
shared object build failure I reported offlist.

Today's buglet:  the attached code illustrates a failure to handle an
equality or inequality comparison between two WORD values.  Same bug
with DWORD, but comparing BYTEs works.  Compile with

gm2 -o compare -fiso compare.mod

It's easy to work around the WORD case by casting to a CARDINAL.  But
casting to CARDINAL64 doesn't work with DWORD for some reason.

Also, trying to import DWORD from the SYSTEM module results in an
error.  It seems that DWORD is treated as a pervasive type .

-Scott

Attachment: compare.mod
Description: audio/mod


reply via email to

[Prev in Thread] Current Thread [Next in Thread]