[Freeciv-Dev] Re: New Patch
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Wed, 6 Feb 2002, Alexander Mai wrote:
> >> - freelog(LOG_DEBUG, "sizeof(struct cma_result)=%d",
> >> - sizeof(struct cma_result));
> >> + freelog(LOG_DEBUG, "sizeof(struct cma_result)=%ld",
> >> + (long)sizeof(struct cma_result));
> >
> >Why do you cast to long?
>
> Well, isn't there the reverse warning as well if printing
> an int (i.e. no long) with a "%li" specifier?
Er, no. "%li" means "long int" (or just "long"). "%ld" also means
"long int". "%d" or "%i" means "int".
Ben
--
ben@xxxxxxxxxxxxxxxxxxxxxx http://bellatrix.pcl.ox.ac.uk/~ben/
"Remember that disagreeable outbreak of foot-and-mouth disease in England last
summer? Well, I shall instruct them, in very convincing terms, exactly how I
arranged that." - Ernst Stavro Blofeld
- [Freeciv-Dev] New Patch, Alexander Mai, 2002/02/06
- [Freeciv-Dev] Re: New Patch, Raimar Falke, 2002/02/06
- [Freeciv-Dev] Re: New Patch, Alexander Mai, 2002/02/06
- [Freeciv-Dev] Re: New Patch,
Ben Webb <=
- [Freeciv-Dev] Re: New Patch, Alexander Mai, 2002/02/06
- [Freeciv-Dev] Re: New Patch, Raimar Falke, 2002/02/06
- [Freeciv-Dev] Re: New Patch, Alexander Mai, 2002/02/06
- [Freeciv-Dev] Re: New Patch, Raimar Falke, 2002/02/06
- [Freeciv-Dev] Re: New Patch, Alexander Mai, 2002/02/06
- [Freeciv-Dev] Re: New Patch, Raimar Falke, 2002/02/06
- [Freeciv-Dev] Re: New Patch, Tony Stuckey, 2002/02/06
- [Freeciv-Dev] Re: New Patch, Alexander Mai, 2002/02/06
- [Freeciv-Dev] Re: New Patch, Vasco Alexandre Da Silva Costa, 2002/02/06
- [Freeciv-Dev] Re: New Patch, Alexander Mai, 2002/02/07
|
|