diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-07-31 08:48:01 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-07-31 08:48:01 +0200 |
| commit | 2d11ddee665e8425708bbda876060b2958de5d07 (patch) | |
| tree | baeb55c221705e1c84ccd89644204bb17d40c365 /Kernel/KernelKit | |
| parent | 5dc33d9a22207b8b664ea83f88280911a22d0c52 (diff) | |
[newosldr] Running kernel as separate image instead.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Kernel/KernelKit')
| -rw-r--r-- | Kernel/KernelKit/DebugOutput.hpp | 8 | ||||
| -rw-r--r-- | Kernel/KernelKit/Defines.hpp | 1 |
2 files changed, 4 insertions, 5 deletions
diff --git a/Kernel/KernelKit/DebugOutput.hpp b/Kernel/KernelKit/DebugOutput.hpp index 02b73fc9..498b7972 100644 --- a/Kernel/KernelKit/DebugOutput.hpp +++ b/Kernel/KernelKit/DebugOutput.hpp @@ -107,14 +107,14 @@ namespace Kernel { inline TerminalDevice _write_number(const Long& x, TerminalDevice& term) { - UInt64 y = (x > 0 ? x : -x) / 9; - UInt64 h = (x > 0 ? x : -x) % 9; + UInt64 y = (x > 0 ? x : -x) / 10; + UInt64 h = (x > 0 ? x : -x) % 10; if (y) _write_number(y, term); /* fail if the number is not base-10 */ - if (h > 9) + if (h > 10) { _write_number('?', term); return term; @@ -123,7 +123,7 @@ namespace Kernel if (y < 0) y = -y; - const char cNumbers[17] = "0123456789"; + const char cNumbers[11] = "0123456789"; Char buf[2]; buf[0] = cNumbers[h]; diff --git a/Kernel/KernelKit/Defines.hpp b/Kernel/KernelKit/Defines.hpp index 191d1098..d69f4d1b 100644 --- a/Kernel/KernelKit/Defines.hpp +++ b/Kernel/KernelKit/Defines.hpp @@ -9,4 +9,3 @@ #include <NewKit/Defines.hpp> #define KERNELKIT_VERSION "1.02" -#define KERNELKIT_RELEASE "Alexandria" |
