summaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'console.c')
-rw-r--r--console.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/console.c b/console.c
index d849860..8acc242 100644
--- a/console.c
+++ b/console.c
@@ -91,13 +91,13 @@ printint(int xx, int base, int sgn)
if(sgn && xx < 0){
neg = 1;
x = 0 - xx;
- } else {
+ }else{
x = xx;
}
- do {
+ do{
buf[i++] = digits[x % base];
- } while((x /= base) != 0);
+ }while((x /= base) != 0);
if(neg)
buf[i++] = '-';