summaryrefslogtreecommitdiffhomepage
path: root/Source/String.cxx
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-26 15:37:37 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-26 15:37:37 +0100
commit0476248f648ccddea9bdf9bae9095c3231e6643d (patch)
tree61280ff1ad93b384a9697c0ee9d60854e12e58e9 /Source/String.cxx
parentae89bf9564c59ea3aee10f175d473e562af793f8 (diff)
Kernel: Retarget AMD64 according to spec.
Kernel/Toolchain: Now move hKernel to /System/ when building the system. MPT: Fix API. newBoot: This is the priority, get a standard file layout to load the kernel at BK_START_KERNEL (0x00080000) Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Source/String.cxx')
-rw-r--r--Source/String.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/Source/String.cxx b/Source/String.cxx
index 86194812..3ad2a0cd 100644
--- a/Source/String.cxx
+++ b/Source/String.cxx
@@ -7,7 +7,6 @@
* ========================================================
*/
-#include <NewKit/KHeap.hpp>
#include <NewKit/String.hpp>
#include <NewKit/Utils.hpp>
@@ -103,7 +102,6 @@ namespace hCore
if (!to_str(result, sizeof(int), i))
{
- delete[] ret;
return ("-1");
}
@@ -211,7 +209,6 @@ namespace hCore
if (lhs && rhs &&
cur < string_length(lhs))
{
- SizeT sz_lhs = string_length(lhs);
SizeT sz_rhs = string_length(rhs);
rt_copy_memory(rhs, lhs + cur, sz_rhs);