diff --git a/luna/PlacementNew.h b/luna/PlacementNew.h index 1e6afcd1..4ecf821c 100644 --- a/luna/PlacementNew.h +++ b/luna/PlacementNew.h @@ -1,11 +1,11 @@ #pragma once -#include +#include -inline void* operator new(size_t, void* p) noexcept +inline void* operator new(usize, void* p) noexcept { return p; } -inline void* operator new[](size_t, void* p) noexcept +inline void* operator new[](usize, void* p) noexcept { return p; } diff --git a/tools/check-stdint.sh b/tools/check-stdint.sh index 47db8013..bf78b6d2 100755 --- a/tools/check-stdint.sh +++ b/tools/check-stdint.sh @@ -6,7 +6,7 @@ source $(dirname $0)/env.sh cd $LUNA_ROOT SOURCES=($(find kernel/src -type f | grep -v "\.asm" | grep -v "bootboot.h")) -SOURCES+=($(find luna -type f | grep -v "CMakeLists.txt" | grep -v "Types.h" | grep -v "PlacementNew.h")) +SOURCES+=($(find luna -type f | grep -v "CMakeLists.txt" | grep -v "Types.h")) SUCCESS=1 diff --git a/tools/replace-stdint.sh b/tools/replace-stdint.sh index f4bce2fd..2fa4d5a2 100755 --- a/tools/replace-stdint.sh +++ b/tools/replace-stdint.sh @@ -6,7 +6,7 @@ source $(dirname $0)/env.sh cd $LUNA_ROOT SOURCES=($(find kernel/src -type f | grep -v "\.asm" | grep -v "bootboot.h")) -SOURCES+=($(find luna -type f | grep -v "CMakeLists.txt" | grep -v "Types.h" | grep -v "PlacementNew.h")) +SOURCES+=($(find luna -type f | grep -v "CMakeLists.txt" | grep -v "Types.h")) for f in ${SOURCES[@]} do