Problems with casting - norman-ipn/Wolfenstein-Port GitHub Wiki

Hi everybody,

I was checking out the errors when compiling and I got this error:

WL_DRAW.c:677:25: error: se requiere un l-valor como operando izquierdo de la asignación

This is the line: (unsigned)postsource = texture

I wonder if this doesn't affect the original statement:

postsource = (long)texture

of course postsource is long and texture is unsigned.

Anwswer

If long int is "bigger" than unsigned int there will be no problem.