Skip to content
Snippets Groups Projects
Commit 9e1fcc34 authored by Yann Dubois De Mont-Marin's avatar Yann Dubois De Mont-Marin
Browse files

Explicit signe to unsigned cast for osxcompile

parent 403b220c
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ int main() { ...@@ -36,7 +36,7 @@ int main() {
counter[1] = 0; counter[1] = 0;
counter[2] = 0; counter[2] = 0;
for (int i = 0; i < 100; i++) { for (int i = 0; i < 100; i++) {
std::size_t nb = rand() % 3; std::size_t nb = static_cast<std::size_t>(rand() % 3);
counter[nb]++; counter[nb]++;
switch (nb) { switch (nb) {
case 0: case 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment