Re: [Freedos-devel] Fwd: [Freedos-kernel] Error compiling ...

2009-02-27 Thread Eric Auer
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"

Re: [Freedos-devel] Fwd: [Freedos-kernel] Error compiling ...

2009-02-26 Thread Alain M.
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

Re: [Freedos-devel] Fwd: [Freedos-kernel] Error compiling ...

2009-02-26 Thread Blair Campbell
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

Re: [Freedos-devel] Fwd: [Freedos-kernel] Error compiling ...

2009-02-26 Thread Alain M.
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

Re: [Freedos-devel] Fwd: [Freedos-kernel] Error compiling ...

2009-02-26 Thread Christian Masloch
>> 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

Re: [Freedos-devel] Fwd: [Freedos-kernel] Error compiling ...

2009-02-26 Thread Blair Campbell
> 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

Re: [Freedos-devel] Fwd: [Freedos-kernel] Error compiling ...

2009-02-26 Thread Alain M.
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

[Freedos-devel] Fwd: [Freedos-kernel] Error compiling ...

2009-02-26 Thread Aitor SantamarĂ­a
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