summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDmitry Atamanov <data-man@users.noreply.github.com>2018-01-09 13:22:29 +0300
committerAndreas Rumpf <rumpf_a@web.de>2018-01-09 11:22:29 +0100
commitb31151f68ea47a38fc8f5b65d51b23c12c591a3f (patch)
tree933f250b1ec7ca9ee4276d3a901ff70af9552e68
parent424532f883305454899b2bdb9c42874b4f0cbcda (diff)
downloadNim-b31151f68ea47a38fc8f5b65d51b23c12c591a3f.tar.gz
New runtime: fix allocator inheritable (#7046)
-rw-r--r--lib/core/allocators.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/core/allocators.nim b/lib/core/allocators.nim
index 4edd00f36..62f5e9756 100644
--- a/lib/core/allocators.nim
+++ b/lib/core/allocators.nim
@@ -8,7 +8,7 @@
 #
 
 type
-  Allocator* {.inheritable.} = ptr object
+  Allocator* = ptr object {.inheritable.}
     alloc*: proc (a: Allocator; size: int; alignment: int = 8): pointer {.nimcall.}
     dealloc*: proc (a: Allocator; p: pointer; size: int) {.nimcall.}
     realloc*: proc (a: Allocator; p: pointer; oldSize, newSize: int): pointer {.nimcall.}