[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Mldonkey-users] [patch #4477] win: prevented some compiler warnings (os
From: |
Schlumpf |
Subject: |
[Mldonkey-users] [patch #4477] win: prevented some compiler warnings (os_stubs_c.c gdstubs.c) |
Date: |
Sun, 2 Oct 2005 11:55:23 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 |
Follow-up Comment #2, patch #4477 (project mldonkey):
>It would be better if you returned 0 instead of '/0' since the
>expected return type is an int64.
yep i agree with you, so this should be changed.
"ret" is declared as long, INVALID_SET_FILE_POINTER is defined as an
DWORD(unsigned long) in winbase.h
This comparison is then "signed long == unsigned long" thats the reason for
the compiler Warning "src/config/mingw/os_stubs_c.c:111: warning: comparison
between signed and unsigned"
so its required to change the declaration of "ret" to an DWORD or make an
casting to an DWORD (unsigned long), it doesen`t make any different to me
what we use, so you can pick out one of the possibilities ;)
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?func=detailitem&item_id=4477>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
- [Mldonkey-users] [patch #4477] win: prevented some compiler warnings (os_stubs_c.c gdstubs.c), Amorphous, 2005/10/01
- [Mldonkey-users] [patch #4477] win: prevented some compiler warnings (os_stubs_c.c gdstubs.c), anonymous, 2005/10/01
- [Mldonkey-users] [patch #4477] win: prevented some compiler warnings (os_stubs_c.c gdstubs.c),
Schlumpf <=
- [Mldonkey-users] [patch #4477] win: prevented some compiler warnings (os_stubs_c.c gdstubs.c), anonymous, 2005/10/02
- [Mldonkey-users] [patch #4477] win: prevented some compiler warnings (os_stubs_c.c gdstubs.c), Schlumpf, 2005/10/03
- [Mldonkey-users] [patch #4477] win: prevented some compiler warnings (os_stubs_c.c gdstubs.c), anonymous, 2005/10/03
- [Mldonkey-users] [patch #4477] win: prevented some compiler warnings (os_stubs_c.c gdstubs.c), spiralvoice, 2005/10/06
- [Mldonkey-users] [patch #4477] win: prevented some compiler warnings (os_stubs_c.c gdstubs.c), Schlumpf, 2005/10/06
- [Mldonkey-users] [patch #4477] win: prevented some compiler warnings (os_stubs_c.c gdstubs.c), spiralvoice, 2005/10/06
- [Mldonkey-users] [patch #4477] win: prevented some compiler warnings (os_stubs_c.c, gdstubs.c, md4.c), spiralvoice, 2005/10/06
- [Mldonkey-users] [patch #4477] win: prevented some compiler warnings (os_stubs_c.c, gdstubs.c, md4.c), anonymous, 2005/10/06
- [Mldonkey-users] [patch #4477] win: prevented some compiler warnings (os_stubs_c.c, gdstubs.c, md4.c), Schlumpf, 2005/10/08
- [Mldonkey-users] [patch #4477] win: prevented some compiler warnings (os_stubs_c.c, gdstubs.c, md4.c), Schlumpf, 2005/10/08