Skip to content

Commit

Permalink
more warnings?
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Jul 31, 2024
1 parent c5c8e25 commit 3f9f026
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/aws/common/math.inl
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ AWS_STATIC_IMPL size_t aws_add_size_saturating(size_t a, size_t b) {
*/
AWS_STATIC_IMPL int aws_add_size_checked(size_t a, size_t b, size_t *r) {
#if SIZE_BITS == 32
return aws_add_u32_checked(a, b, (uint32_t *)r);
return aws_add_u32_checked(a, b, r);
#elif SIZE_BITS == 64
return aws_add_u64_checked(a, b, (uint64_t *)r);
return aws_add_u64_checked(a, b, r);
#else
# error "Target not supported"
#endif
Expand All @@ -145,9 +145,9 @@ AWS_STATIC_IMPL size_t aws_sub_size_saturating(size_t a, size_t b) {

AWS_STATIC_IMPL int aws_sub_size_checked(size_t a, size_t b, size_t *r) {
#if SIZE_BITS == 32
return aws_sub_u32_checked(a, b, (uint32_t *)r);
return aws_sub_u32_checked(a, b, r);
#elif SIZE_BITS == 64
return aws_sub_u64_checked(a, b, (uint64_t *)r);
return aws_sub_u64_checked(a, b, r);
#else
# error "Target not supported"
#endif
Expand Down

0 comments on commit 3f9f026

Please sign in to comment.