searchSVR2 signed char problem
lmm at labsms.UUCP
lmm at labsms.UUCP
Tue May 6 08:36:00 AEST 1986
/* ---------- "searchSVR2 signed char problem" ---------- */
Oh great and mighty 'search' Gurus out there - -
I've got a problem - - I have received all of the source to
search for System V release 2. It compiles ok, however when
I run it, I can only make my velocity go in a positive X direction
(and only a negative Y velocity) Come to find out that this has to do
with the fact that our machine (an AT&T 3B20S) doesn't understand
signed chars - - - All chars are unsigned (therefore no negative
values). It looks like search is *VERY* dependant on signed chars.
Ive thought about doing a "typedef short int schar", and
then replacing the applicable chars to schars, however short
ints on our machine are 16 bits long (verses 8bits for chars).
Wouldn't this make the universe lots bigger than the 256 by 256
(-128 to 127) coordinate system with wrap around.
Has anybody else ran into this? - - Is there an easy fix?
Larry McWilliams
ihnp4!labsms!lmm
or
okstate!uokvax!occrsh!labsms!lmm
More information about the Comp.lang.c
mailing list