better warning

This commit is contained in:
Dmitriy Ryajov 2022-03-27 14:40:08 -06:00
parent 151fcc663f
commit 94025b39a7
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4

View File

@ -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)