Simon Tatham
50853ddcc3
winnet.c: improve 64-bit-cleanness in cmpfortree.
...
Commit f2e61275f converted the integer casts in cmpforsearch to
uintptr_t from unsigned long. But it left the companion function
cmpfortree alone, presumably on the grounds that the compiler didn't
report a warning for that one.
But those two functions (cmpfortree and cmpforsearch) are used with
the same tree234, so they're supposed to implement the same sorting
criterion. And the thing they're actually comparing, namely the
Windows API typedef SOCKET, is a pointer-sized integer. So there was a
latent bug here in which cmpforsearch was comparing all 64 bits of the
pointer, while cmpfortree was only comparing the low-order 32.
2019-08-11 14:06:53 +01:00
..
2019-03-16 12:25:23 +00:00
2018-08-21 07:17:06 +01:00
2007-01-07 10:17:12 +00:00
2015-08-15 13:54:44 +01:00
2019-03-18 20:32:55 +00:00
2007-01-07 10:17:12 +00:00
2005-10-04 14:13:28 +00:00
2007-01-07 10:17:12 +00:00
2005-10-04 14:13:28 +00:00
2005-10-04 14:13:28 +00:00
2007-01-07 10:17:12 +00:00
2015-08-15 13:54:44 +01:00
2019-03-16 12:25:23 +00:00
2007-01-07 10:17:12 +00:00
2007-01-07 10:17:12 +00:00
2015-08-15 13:54:44 +01:00
2019-03-18 20:32:55 +00:00
2007-02-06 22:39:15 +00:00
2018-10-06 11:57:59 +01:00
2019-03-16 12:25:23 +00:00
2017-09-13 19:26:28 +01:00
2019-03-18 21:53:45 +00:00
2018-11-03 13:45:00 +00:00
2019-03-18 22:02:13 +00:00
2017-05-07 16:29:01 +01:00
2019-03-16 12:25:23 +00:00
2019-03-18 20:32:55 +00:00
2018-11-03 13:45:00 +00:00
2018-11-03 13:45:00 +00:00
2018-11-03 13:45:00 +00:00
2019-03-16 12:25:23 +00:00
2019-06-30 15:02:30 +01:00
2018-11-03 13:45:00 +00:00
2019-03-09 16:21:49 +00:00
2019-06-18 06:58:51 +01:00
2019-03-19 23:55:26 +00:00
2019-02-28 20:15:38 +00:00
2019-03-26 00:27:04 +00:00
2019-03-26 00:27:04 +00:00
2019-03-16 12:25:23 +00:00
2019-07-28 10:40:47 +01:00
2018-11-03 13:45:00 +00:00
2019-03-16 12:25:23 +00:00
2019-02-20 07:27:13 +00:00
2019-08-11 14:06:53 +01:00
2019-03-16 12:25:23 +00:00
2019-05-05 20:28:00 +01:00
2010-12-27 00:24:48 +00:00
2018-11-03 13:47:29 +00:00
2019-07-28 10:40:47 +01:00
2019-04-19 15:48:53 +01:00
2019-02-04 20:32:31 +00:00
2019-07-10 20:47:09 +01:00
2019-06-18 06:58:51 +01:00
2019-02-06 21:46:10 +00:00
2018-11-03 13:47:29 +00:00
2018-11-03 13:45:00 +00:00
2018-11-03 13:45:00 +00:00
2019-03-16 12:25:23 +00:00
2019-03-09 16:21:49 +00:00
2019-01-20 17:09:24 +00:00
2019-08-04 15:38:11 +01:00
2019-03-16 12:25:23 +00:00
2017-02-14 23:25:25 +00:00
2019-07-02 21:22:01 +01:00
2019-03-21 12:57:09 +00:00
2018-11-03 13:45:00 +00:00