Hi Alain,
> * The date and time arguments to _dos_getftime() and
> _dos_setftime() are now using 'unsigned int' type instead of 'unsigned
> short'. This change has been made to improve compatibility with other
> compilers.
What kind of compatibility / which compilers? I am used to "int"
I believe that this is a new philosophy that is getting more and more
common: issue as many warnings as possible, specially when portability
is compromised.
I don't like it too, but whenever I will have to port something to 64
bits, it surely will help...
Alain
Blair Campbell escreveu:
> IMH
IMHO, it should only cause a warning for the 32-bit case, and the
difference should be ingored in 16-bit, because they are the same
size. Note that in 32-bit DJGPP, long can go to int without any
warnings, even with -Wall.
On Thu, Feb 26, 2009 at 3:55 PM, Alain M. wrote:
> Christian Masloch escr
Christian Masloch escreveu:
>>> You can cast a short to an int, an the conversion in ok, but to cast a
>>> short* to an int* will bring in 2 extra bytes and an INVALID POINTER...
>> no short * and int * are the exact same size in 16-bit compilers (try
>> compiling a test program which prints sizeof
>> You can cast a short to an int, an the conversion in ok, but to cast a
>> short* to an int* will bring in 2 extra bytes and an INVALID POINTER...
>
> no short * and int * are the exact same size in 16-bit compilers (try
> compiling a test program which prints sizeof(int), sizeof(short). For
> s
> You can cast a short to an int, an the conversion in ok, but to cast a
> short* to an int* will bring in 2 extra bytes and an INVALID POINTER...
>
no short * and int * are the exact same size in 16-bit compilers (try
compiling a test program which prints sizeof(int), sizeof(short). For
some rea
This looks like a real error to me !!!
You can cast a short to an int, an the conversion in ok, but to cast a
short* to an int* will bring in 2 extra bytes and an INVALID POINTER...
Alain
Aitor SantamarĂa escreveu:
> Sending over here too, as this list is more popular, and in case
> someone is
Sending over here too, as this list is more popular, and in case
someone is not reading there and can contribute.
Aitor
-- Forwarded message --
From: Hans
Date: 2009/2/15
Subject: Re: [Freedos-kernel] Error compiling ...
To: freedos-ker...@lists.sourceforge.net
The easy fix to