Skip to content

Commit

Permalink
Fix issue in 32 bits mode
Browse files Browse the repository at this point in the history
  • Loading branch information
P-p-H-d committed May 28, 2024
1 parent 8e70b61 commit 3fd2146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test-mstring.c
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ static void test_rounding(void)
// The final cast to size_t is due to clang which now gives
// warning even if the cast an integer to a bigger size(!)
const size_t max = (size_t) -(m_str1ng_size_t)1;
for(size_t a = max/2; a <= max; a++) {
for(size_t a = max/2; a <= max && a != 0; a++) {
unsigned char m, e;
size_t x = (size_t) a + a/2;
size_t nx = m_str1ng_round_capacity(&m, &e, (m_str1ng_size_t) x);
Expand Down

0 comments on commit 3fd2146

Please sign in to comment.