summaryrefslogtreecommitdiff
path: root/src/kernel/ui/vt.cpp
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-05-18 11:10:53 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-05-18 11:10:53 +0200
commitc19415d2ffb6f063f91983ff505e2530ab500908 (patch)
tree021263be30daa438387ce3a12453a7719bc8dccf /src/kernel/ui/vt.cpp
parent593bf4df3d8db49286c1a7ae4ef75c887b629930 (diff)
downloadTCE-c19415d2ffb6f063f91983ff505e2530ab500908.tar.gz
TCE-c19415d2ffb6f063f91983ff505e2530ab500908.zip
Minor changes.
Diffstat (limited to 'src/kernel/ui/vt.cpp')
-rw-r--r--src/kernel/ui/vt.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/kernel/ui/vt.cpp b/src/kernel/ui/vt.cpp
index 4675cdc..683d484 100644
--- a/src/kernel/ui/vt.cpp
+++ b/src/kernel/ui/vt.cpp
@@ -91,11 +91,15 @@ void vt::writeHex(uint32_t v) {
}
}
-void vt::writeDec(uint32_t v) {
+void vt::writeDec(int v) {
if (v == 0) {
put('0');
return;
}
+ if (v < 0) {
+ put ('-');
+ v = -v;
+ }
char numbers[] = "0123456789";
while (v > 0) {