Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2002:
[Freeciv-Dev] Re: New Patch
Home

[Freeciv-Dev] Re: New Patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Raimar Falke" <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Cc: "freeciv-dev@xxxxxxxxxxx" <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: New Patch
From: "Alexander Mai" <st002279@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 06 Feb 2002 13:56:55 +0100 (CET)
Reply-to: "Alexander Mai" <st002279@xxxxxxxxxxxxxxxxxxxxxx>

On Wed, 6 Feb 2002 12:41:19 +0100, Raimar Falke wrote:

>On Wed, Feb 06, 2002 at 12:08:50PM +0100, Alexander Mai wrote:
>> Hello,
>> 
>> the attached patch
>> 
>>  - has the still missing OS/2 patch for the server
>
>>  - fixes warnings of kind
>>    cma_core.c:1701: warning: int format, long int arg (arg 3)
>>    in the given file
>
>> -  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?

---
Alexander Mai
st002279@xxxxxxxxxxxxxxxxxxxxxx




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