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>
This commit is contained in:
ringabout 2022-11-05 17:58:57 +08:00 • committed by GitHub
commit d5cc2085ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 95 additions and 64 deletions

View file

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