summary refs log tree commit diff stats
path: root/lib/system/memory.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/system/memory.nim')
-rw-r--r--lib/system/memory.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/memory.nim b/lib/system/memory.nim
index 8d190e5f9..50faa3d86 100644
--- a/lib/system/memory.nim
+++ b/lib/system/memory.nim
@@ -45,9 +45,9 @@ proc nimCmpMem*(a, b: pointer, size: Natural): cint {.compilerproc, nonReloadabl
       if d != 0: return d
       inc i
 
-proc nimCStrLen*(a: cstring): csize_t {.compilerproc, nonReloadable, inline.} =
+proc nimCStrLen*(a: cstring): int {.compilerproc, nonReloadable, inline.} =
   when useLibC:
-    c_strlen(a)
+    cast[int](c_strlen(a))
   else:
     var a = cast[ptr byte](a)
     while a[] != 0: