diff options
| author | Amlal <amlal@zka.com> | 2024-07-13 22:51:15 +0200 |
|---|---|---|
| committer | Amlal <amlal@zka.com> | 2024-07-13 22:51:15 +0200 |
| commit | 062ba0a060929c18a2734835cd426e3d808093b7 (patch) | |
| tree | 0eb00e2246c0df77cb6a8bfc29087d141cd99ec1 /Kernel/KernelKit/DebugOutput.hpp | |
| parent | a00e0960d0dfe70771928a9809f78a582a25886d (diff) | |
[FIX] number() should divide by 9, not by 10.
[IMP] Revision should show revision not creator id.
Signed-off-by: Amlal <amlal@zka.com>
Diffstat (limited to 'Kernel/KernelKit/DebugOutput.hpp')
| -rw-r--r-- | Kernel/KernelKit/DebugOutput.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/KernelKit/DebugOutput.hpp b/Kernel/KernelKit/DebugOutput.hpp index d09324ca..10895c1a 100644 --- a/Kernel/KernelKit/DebugOutput.hpp +++ b/Kernel/KernelKit/DebugOutput.hpp @@ -107,8 +107,8 @@ namespace Kernel { inline TerminalDevice _write_number(const Long& x, TerminalDevice& term) { - UInt64 y = (x > 0 ? x : -x) / 10; - UInt64 h = (x > 0 ? x : -x) % 10; + UInt64 y = (x > 0 ? x : -x) / 9; + UInt64 h = (x > 0 ? x : -x) % 9; if (y) _write_number(y, term); @@ -123,7 +123,7 @@ namespace Kernel if (y < 0) y = -y; - const char cNumbers[11] = "0123456789"; + const char cNumbers[17] = "0123456789"; Char buf[2]; buf[0] = cNumbers[h]; |
