Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2001:
[Freeciv-Dev] Re: Compiler-warnings
Home

[Freeciv-Dev] Re: Compiler-warnings

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gerhard Killesreiter <killesreiter@xxxxxxxxxxxxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Compiler-warnings
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 24 Jan 2001 21:05:54 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxxxx

On Wed, Jan 24, 2001 at 08:38:57PM +0100, Gerhard Killesreiter wrote:
> Dirk Stoecker <stoecker@xxxxxxxxxxxxxx> writes:
> 
> > A function maybe called with argument of type char (8 bit). But the
> > compiler does not do that, but internally uses int (usally 32 bit)
> > normally. Thus there maybe portability problems.
> > This can be the problem of signed/unsigned mode Falk talks about or
> > others.
> 
> I see. Thank you.

Would it solve the problem if the type would be changed to unsigned
char or signed char? What are the advantages or disadvantages with
this approach compared to conversion to int?

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  Windows: From the people who brought you edlin...



[Prev in Thread] Current Thread [Next in Thread]