[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: |
Simon Goldschmidt |
Subject: |
[lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture |
Date: |
Mon, 12 Dec 2016 19:43:30 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36 |
Follow-up Comment #8, bug #49827 (project lwip):
> I realize that DOS is dead, but not quite dead.
That's not a DOS issue, I'll have to check our M16C compiler; I bet it's the
same problem there. Although I don't think they have ptrdiff_t and this type
predefined, you're now forced to think about it yourself.
Using size_t for this was wrong, and maybe using ptrdiff_t is wrong, too. But
searching for a good default that works out of the box for most people,
there's not much left other than ptrdiff_t?
However, it seems a bit strange to me that ptrdiff_t is 16 bit when pointers
are 32 bit effectively. Probably they assume you don't mix pointers from
different segments as that wouldn't work anyway... At least it's a programming
model I didn't have in mind when writing on lwip code... (but in the end, why
do you want an IP stack for DOS, anyway :-)
_______________________________________________________
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, 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, Simon Goldschmidt, 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, 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, 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 <=
- [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, 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, Joel Cunningham, 2016/12/13
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Ambroz Bizjak, 2016/12/13