gm2
[Top][All Lists]
Advanced

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

Re: [Gm2] comparing BYTE, WORD, and DWORD values


From: Gaius Mulley
Subject: Re: [Gm2] comparing BYTE, WORD, and DWORD values
Date: Wed, 02 May 2012 15:08:52 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

SiTex Graphics <address@hidden> writes:

> 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

Hi Scott,

thanks for the bug report and example code - this is now fixed in the
latest cvs.

> 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 .

This is odd as DWORD doesn't exist in gm2, there is WORD32, WORD64 or
WORD16, could you email me an example?

thanks Gaius




reply via email to

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