delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/15/08:03:51

From: su-lin DOT liao AT worldnet DOT att DOT net (Eric Liao)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help with errors
Date: Wed, 09 Jul 1997 04:47:09 GMT
Organization: AT&T WorldNet Services
Lines: 35
Message-ID: <33c316f1.6303003@netnews.worldnet.att.net>
References: <33c206fc DOT 8853443 AT netnews DOT worldnet DOT att DOT net> <33C2789C DOT 5887 AT emu DOT com> <33c2ba55 DOT 6066342 AT netnews DOT worldnet DOT att DOT net> <33C2D54C DOT 2D26 AT cornell DOT edu>
NNTP-Posting-Host: 207.147.170.23
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Tue, 08 Jul 1997 20:03:24 -0400, "A. Sinan Unur" <asu1 AT cornell DOT edu>
wrote:

>Eric Liao wrote:
>> 
>>         I'm pretty sure destx and desty are correct, because my game
>> runs when I compile it in Borland Turbo C++ 3.1.  I'm still new to
>> DJGPP, though.  I'll try using GDB I guess.
>> 
>
>are destx and desty ints? is TC++ 3.1 a 16 bit compiler? 32 bit ints
>will get considerably larger than 16 bit ones. you realize, of course, a
>single line out of your code is not enough information to put your
>problem in context.
>-- 
>   Sinan
> 
>*******************************************************************
> A. Sinan Unur                                WWWWWW
>                                              |--O+O
> mailto:sinan DOT unur AT cornell DOT edu                C   ^ 
> http://www.people.cornell.edu/pages/asu1/     \  ~/ 
>
>Unsolicited e-mail is _not_ welcome, and will be billed for.
>*******************************************************************
>

	Hmm?  32 bit ints are different?  That might be the problem.
I used GDB and got an 8 digit or so number, and I was wondering how
that could fit in an int.  I always thought an int was 2 bytes on any
compiler.  Is a char still one byte?  What are the other types?  Maybe
I should go look them up.  Thanks for the help.

	Eric Liao

- Raw text -


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