Re: [Vala] Vala thinks uint32 constant is int64



Vala should handle this correctly. The type is uint32 and not int32

On 18/11/2010, at 15:31, Xavier Bestel <xavier bestel free fr> wrote:

Hi,

On Thu, 2010-11-18 at 10:52 +0100, Jaroslav Smid wrote:
/home/jardik/Projects/DAOLinux/ErfEditor/Blowfish.vala:6.15-6.24: error:
Expected initializer of type `uint32' but got `int64'
       0x243F6A88, 0x85A308D3, 0x13198A2E, 0x03707344,
                   ^^^^^^^^^^

I think it's because this constant is too big to fit a signed int32, so
it's a signed int64 => error.
You should suffix it to explicitly tell it's unsigned to make it fit, I
guess.

      Xav

_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list




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