summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-05-28 03:10:38 +0800
committerKeuin <[email protected]>2022-05-28 03:10:38 +0800
commit382a32ae03eac509149c225e66ed745d1d132b22 (patch)
tree07fac05892b3ab904a6de06afa59d3ca67e0009e
parente67bab4e6a220b27b87ca56829d39dc8b20a24b4 (diff)
Do not do implicit type conversion.
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index e94818c..05eda03 100644
--- a/main.c
+++ b/main.c
@@ -326,7 +326,7 @@ int main(int argc, char *argv[]) {
printf("Invalid thread count number.\n");
goto USAGE; /* invalid integer */
}
- threads = val;
+ threads = (int)val;
break;
}
}