summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorLemonBoy <LemonBoy@users.noreply.github.com>2019-02-09 07:30:48 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-02-09 07:30:48 +0100
commitbcbe130ea79fa34007bc0a9a662e026870ba29a6 (patch)
tree0bb0d0f134b97c7635e651b772009378da996ed2 /lib
parent55fe7c114ed04cb18a8c33c0039ae66d6125c24f (diff)
downloadNim-bcbe130ea79fa34007bc0a9a662e026870ba29a6.tar.gz
Fix compilation w/ Atomic[T] types (#10607)
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/concurrency/atomics.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/concurrency/atomics.nim b/lib/pure/concurrency/atomics.nim
index 9e716bdf4..b9d45681e 100644
--- a/lib/pure/concurrency/atomics.nim
+++ b/lib/pure/concurrency/atomics.nim
@@ -136,7 +136,7 @@ else:
       # A type that is known to be atomic and whose size is known at
       # compile time to be 8 bytes or less
 
-  template nonAtomicType(T: typedesc[Trivial]): untyped =
+  template nonAtomicType*(T: typedesc[Trivial]): untyped =
     # Maps types to integers of the same size
     when sizeof(T) == 1: int8
     elif sizeof(T) == 2: int16
@@ -252,7 +252,7 @@ else:
       AtomicInt32 {.importc: "_Atomic NI32".} = object
       AtomicInt64 {.importc: "_Atomic NI64".} = object
 
-    template atomicType(T: typedesc[Trivial]): untyped =
+    template atomicType*(T: typedesc[Trivial]): untyped =
       # Maps the size of a trivial type to it's internal atomic type
       when sizeof(T) == 1: AtomicInt8
       elif sizeof(T) == 2: AtomicInt16