Mail Archives: djgpp/1993/03/07/18:28:44
At the end of graphics.c, there's a line
tss_ptr->tss_ebx = (word32)(unsigned int)bx + (word32)cx << 16;
Borland C 3.1 warns that this statement needs parentheses because the
precedence rules group it as
tss_ptr->tss_ebx = ( (word32)(unsigned int)bx + (word32)cx ) << 16;
which might not be what was intended.
I have not attempted to trace what the code does, but shouldn't this be
tss_ptr->tss_ebx = (word32)(unsigned int)bx + ( (word32)cx << 16 );
?
- Raw text -