summaryrefslogtreecommitdiffstats
path: root/contrib/restricted/aws/aws-c-common/source/priority_queue.c
diff options
context:
space:
mode:
authordakovalkov <[email protected]>2023-12-03 13:33:55 +0300
committerdakovalkov <[email protected]>2023-12-03 14:04:39 +0300
commit2a718325637e5302334b6d0a6430f63168f8dbb3 (patch)
tree64be81080b7df9ec1d86d053a0c394ae53fcf1fe /contrib/restricted/aws/aws-c-common/source/priority_queue.c
parente0d94a470142d95c3007e9c5d80380994940664a (diff)
Update contrib/libs/aws-sdk-cpp to 1.11.37
Diffstat (limited to 'contrib/restricted/aws/aws-c-common/source/priority_queue.c')
-rw-r--r--contrib/restricted/aws/aws-c-common/source/priority_queue.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/contrib/restricted/aws/aws-c-common/source/priority_queue.c b/contrib/restricted/aws/aws-c-common/source/priority_queue.c
index f7d0f54e2d6..86a91feb3ae 100644
--- a/contrib/restricted/aws/aws-c-common/source/priority_queue.c
+++ b/contrib/restricted/aws/aws-c-common/source/priority_queue.c
@@ -59,7 +59,8 @@ static bool s_sift_down(struct aws_priority_queue *queue, size_t root) {
size_t left = LEFT_OF(root);
size_t right = RIGHT_OF(root);
size_t first = root;
- void *first_item = NULL, *other_item = NULL;
+ void *first_item = NULL;
+ void *other_item = NULL;
aws_array_list_get_at_ptr(&queue->container, &first_item, root);
aws_array_list_get_at_ptr(&queue->container, &other_item, left);
@@ -100,7 +101,8 @@ static bool s_sift_up(struct aws_priority_queue *queue, size_t index) {
bool did_move = false;
- void *parent_item = NULL, *child_item = NULL;
+ void *parent_item = NULL;
+ void *child_item = NULL;
size_t parent = PARENT_OF(index);
while (index) {
/*
@@ -216,8 +218,8 @@ bool aws_priority_queue_backpointers_valid(const struct aws_priority_queue *cons
/* Internal container validity */
bool backpointer_list_is_valid =
- ((aws_array_list_is_valid(&queue->backpointers) && (queue->backpointers.current_size != 0) &&
- (queue->backpointers.data != NULL)));
+ (aws_array_list_is_valid(&queue->backpointers) && (queue->backpointers.current_size != 0) &&
+ (queue->backpointers.data != NULL));
/* Backpointer struct should either be zero or should be
* initialized to be at most as long as the container, and having