summary refs log tree commit diff stats
path: root/lib/system/osalloc.nim
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2022-11-05 17:58:57 +0800
committerGitHub <noreply@github.com>2022-11-05 10:58:57 +0100
commitd5cc2085eae85ad922dfafc1dca81860d94d1731 (patch)
tree6afd62439774d55171cf4c5cf2faf18c602d9fb1 /lib/system/osalloc.nim
parent51bef9b4a8b0dab065470d9c224c20ac21e72275 (diff)
downloadNim-d5cc2085eae85ad922dfafc1dca81860d94d1731.tar.gz
ref #20694; quit value gets saturated to ranges (#20753)
* quit value gets saturated to ranges

* add documentation

* minimal changes

* refactor

* small fix

* add documentation

* fixes

* Update lib/system.nim

Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>

Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
Diffstat (limited to 'lib/system/osalloc.nim')
-rw-r--r--lib/system/osalloc.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/osalloc.nim b/lib/system/osalloc.nim
index 39bf65d6c..4817059be 100644
--- a/lib/system/osalloc.nim
+++ b/lib/system/osalloc.nim
@@ -189,7 +189,7 @@ elif defined(windows) and not defined(StandaloneHeapSize):
     when reallyOsDealloc:
       if virtualFree(p, 0, MEM_RELEASE) == 0:
         cprintf "virtualFree failing!"
-        quit 1
+        rawQuit 1
     #VirtualFree(p, size, MEM_DECOMMIT)
 
 elif hostOS == "standalone" or defined(StandaloneHeapSize):