summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorConrad Pankoff <deoxxa@fknsrs.biz>2019-09-02 15:31:19 +1000
committerAndreas Kling <awesomekling@gmail.com>2019-09-02 08:28:31 +0200
commita92939b7660bf01563dd55f1584bea3cae14b32b (patch)
tree9c26468f18a8aa918f967c36e674972ac2838aac /AK
parentb615a5c780b96c0a771ce0f3630d317017d45769 (diff)
downloadserenity-a92939b7660bf01563dd55f1584bea3cae14b32b.zip
AK: Support %i as an alias for %d in printf
Diffstat (limited to 'AK')
-rw-r--r--AK/PrintfImplementation.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/AK/PrintfImplementation.h b/AK/PrintfImplementation.h
index ff76889afd..43e4aa7d63 100644
--- a/AK/PrintfImplementation.h
+++ b/AK/PrintfImplementation.h
@@ -290,6 +290,7 @@ template<typename PutChFunc>
} break;
case 'd':
+ case 'i':
ret += print_signed_number(putch, bufptr, va_arg(ap, int), left_pad, zeroPad, fieldWidth);
break;