Skip to content

Commit

Permalink
cextras: update to new main
Browse files Browse the repository at this point in the history
This update fixes a malbehaviour on 32bit systems, where the cextras
library would calculate the wrong size for array resizing.

The corresponding commit in cextras is 2777280db867664211f072fc4bd6173a781ec8d4.

	 			return -CX_ERR_INTEGER_OVERFLOW;
	 		}
	 		// Set the bit at the position of the first 0 to 1
	-		*val = 1ULL << (sizeof(size_t) * 8 - leading_zeros);
	+		*val = 1ULL << (sizeof(long long) * 8 - leading_zeros);
	 	}
	 	return 0;
	 }

Gottox/cextras@2777280
  • Loading branch information
Gottox committed Sep 6, 2024
1 parent a2c1f41 commit d460410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subprojects/cextras.wrap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[wrap-git]
directory = cextras
revision = c2d675dbd39f3f9b9d138907b965147819c17f6c
revision = 2777280db867664211f072fc4bd6173a781ec8d4
url = https://github.com/Gottox/cextras.git
depth = 1

Expand Down

0 comments on commit d460410

Please sign in to comment.