[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architectur
From: |
Alexander |
Subject: |
[lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture |
Date: |
Tue, 13 Dec 2016 09:06:38 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36 |
Follow-up Comment #15, bug #49827 (project lwip):
I have test another 16Bit compable compiler (DigitalMars):
printf("%p\n", &lwip_cyclic_timers[i]);
printf("%p\n", LWIP_CONST_CAST(void*, &lwip_cyclic_timers[i]));
and got the results:
317B:000C
0000:000C
And if We start talk about warnings, there are some places in LwIP
(api_msg:1520, dnc.c:1223)
where compiler warns if int is 16 bit long:
if ((int)(res_idx + lwip_htons(ans.len)) > 0xFFFF)
dns.c(1223): Warning! W124: Comparison result always 0
By standart: int Capable of containing at least the [−32767, +32767] range.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?49827>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, (continued)
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Alexander, 2016/12/12
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Dirk Ziegelmeier, 2016/12/12
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Alexander, 2016/12/12
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Simon Goldschmidt, 2016/12/12
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Ambroz Bizjak, 2016/12/12
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Simon Goldschmidt, 2016/12/12
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Ambroz Bizjak, 2016/12/12
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Joel Cunningham, 2016/12/12
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Dirk Ziegelmeier, 2016/12/13
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Simon Goldschmidt, 2016/12/13
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture,
Alexander <=
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Simon Goldschmidt, 2016/12/13
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Joel Cunningham, 2016/12/13
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Ambroz Bizjak, 2016/12/13