Menu

#2 compilation error on 64bit archs

open
nobody
None
5
2006-03-13
2006-03-13
Anonymous
No

exscalibar doesn't compile on amd64, because a pointer
is cast to an uint in processorforwarder.cpp line 121:

header << ((uint)sub) << endl;

There's no reason whatsoever to assume that the size of
a pointer would fit in an int.

Changing the cast to

header << ((void *)sub) << endl;

fixes the compilation problem, but I'm not entirely
sure that this cast is exactly what is intended.

Discussion


Log in to post a comment.