in reply to Re^8: [OT] LLP64 .v. LP64 portability
in thread [OT] LLP64 .v. LP64 portability
Could you please give an example where this would help? I am tired, but it sounds to me like you're trying to fix
withtypedef size_t STRLEN; IV iv = -12; STRLEN len = iv; memcpy(src, dst, len);
typedef ptrdiff_t STRLEN; IV iv = -12; STRLEN len = iv; memcpy(src, dst, (size_t)len);
Of course, that doesn't work. I don't see a case where casting would help. There's a reason casting is cheap.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: [OT] LLP64 .v. LP64 portability
by BrowserUk (Patriarch) on Apr 23, 2010 at 05:51 UTC | |
by ikegami (Patriarch) on Apr 23, 2010 at 06:04 UTC | |
by ikegami (Patriarch) on Apr 23, 2010 at 06:06 UTC | |
by ikegami (Patriarch) on Apr 23, 2010 at 06:07 UTC |