summaryrefslogtreecommitdiffstats
path: root/3
diff options
context:
space:
mode:
Diffstat (limited to '3')
-rw-r--r--3/4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/3/4.c b/3/4.c
index 1ba196c..5ddf2ef 100644
--- a/3/4.c
+++ b/3/4.c
@@ -27,7 +27,7 @@ void itoa(int n, char s[]) {
i = 0;
- if (n >= 0) {
+ if (n != INT_MIN) {
do {
s[i++] = n % 10 + '0';
} while ((n /= 10) > 0);