summaryrefslogtreecommitdiffstats
path: root/3/4.c
diff options
context:
space:
mode:
authorSadeep Madurange <smadurange@users.noreply.github.com>2021-12-04 08:46:55 +0800
committerSadeep Madurange <smadurange@users.noreply.github.com>2021-12-04 08:46:55 +0800
commit6d458ba22c20454f72939d0cacd676788c335c64 (patch)
treeed2323e722bed9f29bfb3469b6bb4dfc704809e6 /3/4.c
parent1d958679201f143ecf1c5527bd462e29b87427de (diff)
downloadk&r-exercises-6d458ba22c20454f72939d0cacd676788c335c64.tar.gz
3.4
Diffstat (limited to '3/4.c')
-rw-r--r--3/4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/3/4.c b/3/4.c
index 91c3953..6bcc1bb 100644
--- a/3/4.c
+++ b/3/4.c
@@ -29,7 +29,7 @@ void itoa(int n, char s[]) {
} while ((n /= 10) > 0);
}
else {
- // avoid integer overflow of n = -n of min n in original impl
+ // avoid integer overflow of n = -n for min integer in original impl
// by handling negtive values separately.
do {
s[i++] = -(n % 10) + '0';