消息 [119030]
> AFAICT, a change from (Py_ssize_t)-1 to (size_t)-1 is less likely to
> break code than a change from -1L to (Py_ssize_t)-1. (Assuming a
> sizeof(long) != sizeof(void*) platform.)
That's true.
> The benefit, though is that
> hash computations can be performed natively on the hash values without
> casting to an unrelated type.
I don't understand what you mean by "native" and "unrelated". Signed
integers are not less native than unsigned ones. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2010-10-18 15:27:28 | pitrou | 修改 | recipients:
+ pitrou, lemburg, tim.peters, loewis, skip.montanaro, georg.brandl, rhettinger, jimjjewett, mark.dickinson, belopolsky, casevh, ked-tao, benjamin.peterson |
| 2010-10-18 15:27:27 | pitrou | 链接 | issue9778 messages |
| 2010-10-18 15:27:26 | pitrou | 创建 | |
|