petersen@uicsrd.csrd.uiuc.edu (Paul Petersen) (03/13/90)
I've been doing some C programming on the IBM PC lately have have run into a snag. Unsigned longs do not seem to be supported. I've changed into the HUGE mode to get 32 bit int's, but any variables of type unsigned long which have the high bit set (i.e. would be negative if just longs) do not do the right thing when used with ">>", "/", or "%". I've reported this problem to Borland, but have not gotten a patch/work-around yet. Has anyone here run into this problem, and found a workaround other that coding subroutines to do it the right way? -Paul Petersen University of Illinois, Urbana-Champaign Center for Supercomputing Research and Development UUCP: {uunet,convex}!uiucuxc!uicsrd!petersen INTERNET: petersen@uicsrd.csrd.uiuc.edu
petersen@uicsrd.csrd.uiuc.edu (Paul Petersen) (03/13/90)
This is the original poster. I recieved mail saying that their versions of TurboC v2.0 worked correctly. I was baseing my claim on differences in output from my programs on different platforms, unfortunately I reported the wrong problem (GIGO, damn CR/LF stupidity) compounded by the fact that the Turbo-Debugger's Inspect function does not work in the same way of the TurboC Inspect function. It's the debugger that treats unsigned longs as signed longs. Sorry for jumping to the wrong conclusion, now back into my hole.... -Paul Petersen University of Illinois, Urbana-Champaign Center for Supercomputing Research and Development UUCP: {uunet,convex}!uiucuxc!uicsrd!petersen INTERNET: petersen@uicsrd.csrd.uiuc.edu