Skip to content

Commit 573aec1

Browse files
Style nit
1 parent 0f1f1ea commit 573aec1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Modules/_zoneinfo.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2561,8 +2561,8 @@ zone_from_strong_cache(zoneinfo_state *state, const PyTypeObject *const type,
25612561
StrongCacheNode *node = find_in_strong_cache(cache, key);
25622562

25632563
if (node != NULL) {
2564-
move_strong_cache_node_to_front(state, &(state->ZONEINFO_STRONG_CACHE),
2565-
node);
2564+
StrongCacheNode **root = &(state->ZONEINFO_STRONG_CACHE);
2565+
move_strong_cache_node_to_front(state, root, node);
25662566
Py_INCREF(node->zone);
25672567
return node->zone;
25682568
}
@@ -2585,9 +2585,8 @@ update_strong_cache(zoneinfo_state *state, const PyTypeObject *const type,
25852585
}
25862586

25872587
StrongCacheNode *new_node = strong_cache_node_new(key, zone);
2588-
2589-
move_strong_cache_node_to_front(state, &(state->ZONEINFO_STRONG_CACHE),
2590-
new_node);
2588+
StrongCacheNode **root = &(state->ZONEINFO_STRONG_CACHE);
2589+
move_strong_cache_node_to_front(state, root, new_node);
25912590

25922591
StrongCacheNode *node = new_node->next;
25932592
for (size_t i = 1; i < ZONEINFO_STRONG_CACHE_MAX_SIZE; ++i) {

0 commit comments

Comments
 (0)