GtkD compile failed. shift by 32

1100110 10equals2 at gmail.com
Sun Jun 10 18:21:29 PDT 2012


http://svn.dsource.org/projects/gtkd/branches/070125merge/gtkD/src/gdk/Color.d


uint getValue()
{
	return (gdkColor.red <<32) | (gdkColor.green << 16) | (gdkColor.blue);
}


Just browsing through the source it looks like gtkColor.red is a ushort.
I get this error.

dmd -O -m64 -Isrc -c src/gdk/Pixbuf.d -ofsrc/gdk/Pixbuf.o
src/gdk/Color.d(231): Error: shift by 32 is outside the range 0..31
make: *** [src/gdk/Color.o] Error 1
make: *** Waiting for unfinished jobs....
==> ERROR: A failure occurred in build().

I get that exact same message no matter which compiler I use.

Does any

-- 
Using Opera's rev...Shutit Opera.
Firefox is catching up. Apparently their machines ran
out of RAM too.


More information about the Digitalmars-d-learn mailing list