- Notifications
You must be signed in to change notification settings - Fork5
Commit1b794d3
committed
Fix hash_update_hash_key() to handle same-bucket case correctly.
Original coding would corrupt the hashtable if the item being updated wasat the end of its bucket chain and the new hash key hashed to that samebucket. Diagnosis and fix by Heikki Linnakangas.1 parent3f4b174 commit1b794d3
1 file changed
+19
-8
lines changedLines changed: 19 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1022 | 1022 |
| |
1023 | 1023 |
| |
1024 | 1024 |
| |
| 1025 | + | |
1025 | 1026 |
| |
1026 | 1027 |
| |
1027 | 1028 |
| |
| |||
1078 | 1079 |
| |
1079 | 1080 |
| |
1080 | 1081 |
| |
1081 |
| - | |
| 1082 | + | |
1082 | 1083 |
| |
1083 |
| - | |
1084 |
| - | |
| 1084 | + | |
| 1085 | + | |
1085 | 1086 |
| |
1086 | 1087 |
| |
1087 | 1088 |
| |
| |||
1115 | 1116 |
| |
1116 | 1117 |
| |
1117 | 1118 |
| |
1118 |
| - | |
1119 |
| - | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
1120 | 1130 |
| |
1121 |
| - | |
1122 |
| - | |
1123 |
| - | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
1124 | 1135 |
| |
1125 | 1136 |
| |
1126 | 1137 |
| |
|
0 commit comments
Comments
(0)