Well, U suffix works, but I thought vala would be smart enough to handle
this. Anyway, I had to switch to C because vala doesn't use size_t for array
sizes and uses int.

pancake: sorry for sending messed up message :-)

On Thu, Nov 18, 2010 at 10:53 PM, pancake <[email protected]> wrote:

> Vala should handle this correctly. The type is uint32 and not int32
>
> On 18/11/2010, at 15:31, Xavier Bestel <[email protected]> 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
> > [email protected]
> > http://mail.gnome.org/mailman/listinfo/vala-list
> >
>
_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to