Skip to content

Commit

Permalink
more lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Nov 20, 2023
1 parent 7f14806 commit 3739d1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/s3_buffer_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ struct s3_buffer_pool_block {

static inline uint16_t s_set_bit_n(uint16_t num, size_t position, size_t n) {
uint16_t mask = ((uint16_t)0x00FF) >> (8 - n);
return num | (mask << position) ;
return num | (mask << position);
}

static inline uint16_t s_clear_bit_n(uint16_t num, size_t position, size_t n) {
uint16_t mask = ((uint16_t)0x00FF) >> (8 - n);
return num & ~ (mask << position);
return num & ~(mask << position);
}

static inline bool s_check_bit_n(uint16_t num, size_t position, size_t n) {
Expand Down
2 changes: 1 addition & 1 deletion source/s3_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ struct aws_s3_client *aws_s3_client_new(

size_t part_size;
if (client_config->part_size != 0) {
part_size = (size_t)client_config->part_size;
part_size = (size_t)client_config->part_size;
} else {
part_size = s_default_part_size;
}
Expand Down

0 comments on commit 3739d1c

Please sign in to comment.