[Gambas-user] Syntax error

Benoit Minisini gambas at ...1...
Fri Jul 16 21:54:28 CEST 2004


On Thursday 15 July 2004 06:53, Leo Barnhoorn wrote:
> Hallo Benoit,
>
> Gambas versie 0.94a
> I get a syntax error on the following hex numbers.
>
> &HE0D5E91E
> &H97D2D988
> &H80000000
> &HFFFFFFFF
>
> No matter the kind of datatype i use, i get a syntax error.
>
> Can you tell the reason of this.
>
> Regards,
> Leo Barnhoorn.
>

It is just a stupid bug of mine ! Strange that nobody sees it yet...

To patch it, replace the line 130 in gbc_trans.c:

    val = strtol(number, &end, base);

by:

    val = (long)strtoul(number, &end, base);

It should work :-)

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list