[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Windows 64 port
From: |
Paul Eggert |
Subject: |
Re: Windows 64 port |
Date: |
Mon, 20 Feb 2012 15:46:22 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 |
On 02/20/2012 03:11 PM, Fabrice Popineau wrote:
> in several places the compiler (not gcc, but msvc) inserted sign
> extent instructions. I tracked them down to mismatches between
> ints and intptr_t or ptrdiff_t. I fixed them by removing all
> compiler warnings of this kind.
OK, but we need to worry only about code that is actually wrong
unless the types are changed. Extending an int to a long long is
not a bug by itself, and most likely won't even lead to a bug
since it cannot lose information, so most likely there's no need
to worry about inserted sign-extend instructions. Even converting
a long long to an int is not necessarily a bug: it's a problem
only if the actual value at run-time does not fit in int range.
In short, we need not worry about size mismatches in general; only
mismatches that cause real problems. In this context an MSVC
warning by itself does not count as a real problem.
- Windows 64 port, AJMR, 2012/02/19
- Re: Windows 64 port, Eli Zaretskii, 2012/02/19
- Re: Windows 64 port, Fabrice Popineau, 2012/02/19
- Re: Windows 64 port, Eli Zaretskii, 2012/02/19
- Re: Windows 64 port, Paul Eggert, 2012/02/20
- Re: Windows 64 port, Fabrice Popineau, 2012/02/20
- Re: Windows 64 port, Paul Eggert, 2012/02/20
- Re: Windows 64 port, Eli Zaretskii, 2012/02/20
- Re: Windows 64 port, Fabrice Popineau, 2012/02/20
- Re: Windows 64 port,
Paul Eggert <=
- Re: Windows 64 port, Stefan Monnier, 2012/02/21
- Re: Windows 64 port, Paul Eggert, 2012/02/21
- Re: Windows 64 port, Richard Stallman, 2012/02/22
- Re: Windows 64 port, Eli Zaretskii, 2012/02/22
- Re: Windows 64 port, Richard Stallman, 2012/02/23
- Re: Windows 64 port, Aurélien, 2012/02/23
- Re: Windows 64 port, Lennart Borgman, 2012/02/23
- Re: Windows 64 port, Fabrice Popineau, 2012/02/23
- Re: Windows 64 port, Aurélien, 2012/02/24
- Re: Windows 64 port, Fabrice Popineau, 2012/02/28