delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/03/07/18:28:44

Date: Sun, 7 Mar 93 17:44:10 EST
From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: compiling go32

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019