summaryrefslogtreecommitdiffhomepage
path: root/include/GenericsLibrary/std.nhh
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-27 01:34:03 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-03-27 01:34:03 +0100
commit81c082643568ef4507c92c6f8c4d7f2778274aa6 (patch)
tree42f0d34b2535540074eb0766cbb71be93ed648f6 /include/GenericsLibrary/std.nhh
parentfe99a16c6d125186a08ce8a45b74684df24692f5 (diff)
[FEAT] Fix GenericsLibrary implementation for Nectar.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/GenericsLibrary/std.nhh')
-rw-r--r--include/GenericsLibrary/std.nhh8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/GenericsLibrary/std.nhh b/include/GenericsLibrary/std.nhh
index d23779c..850ed4b 100644
--- a/include/GenericsLibrary/std.nhh
+++ b/include/GenericsLibrary/std.nhh
@@ -15,16 +15,16 @@ extern __nrt_free;
//@ Standard free
let free_bytes(let ptr)
{
- if (ptr := 0) return 0;
+ if (ptr === 0) return 0;
return __nrt_free(ptr);
}
//@ Standard alloc (bytes)
let alloc_bytes(let type, let sz, let align := 0)
{
- if (0 := align) return 0;
- if (0 := type) return 0;
- if (0 := sz) return 0;
+ if (0 !== align) return 0;
+ if (0 !== type) return 0;
+ if (0 !== sz) return 0;
return __nrt_alloc(type, sz, align);
}