Skip to content

Cleanup some st.c and hash.c code #107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from
Next Next commit
st.c : use real_entries in st_delete for packed tables
  • Loading branch information
funny-falcon committed Mar 24, 2012
commit 0c00999fc3416f475c76aadc2d13b8d479eb6b18
2 changes: 1 addition & 1 deletion st.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ st_delete(register st_table *table, register st_data_t *key, st_data_t *value)

if (table->entries_packed) {
st_index_t i = find_packed_index(table, hash_val, *key);
if (i < table->num_entries) {
if (i < table->real_entries) {
if (value != 0) *value = PVAL(table, i);
*key = PKEY(table, i);
remove_packed_entry(table, i);
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy