mirror of
https://github.com/logos-storage/nim-leopard.git
synced 2026-01-02 13:43:08 +00:00
better warning
This commit is contained in:
parent
151fcc663f
commit
94025b39a7
@ -47,7 +47,7 @@ elif defined(unix):
|
||||
proc alignedFree*[T](p: ptr T) {.inline.} =
|
||||
c_free(p)
|
||||
else:
|
||||
{.warning: "Falling back to manual pointer alignment, might end-up using more memory!".}
|
||||
{.warning: "Falling back to manual pointer alignment, this is highly inefficient!".}
|
||||
proc alignedAlloc*(size, align: Positive): pointer {.inline.} =
|
||||
var
|
||||
data = c_malloc(align + size)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user