]> gitweb.factorcode.org Git - factor.git/commitdiff
windows.errors: fix a compilation error
authorAlexander Iljin <ajsoft@yandex.ru>
Tue, 28 Jun 2016 22:55:15 +0000 (01:55 +0300)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 6 Jan 2020 21:18:53 +0000 (13:18 -0800)
basis/windows/errors/errors.factor

index ffb735be08774ca5176dc1c57bc5f58710f5f933..8a057f94588c0e44f006f1ecc9d4b0e932920ab6 100644 (file)
@@ -730,7 +730,7 @@ ERROR: windows-error n string ;
 : win32-error=0/f ( n -- ) { 0 f } member? [ win32-error ] when ;
 : win32-error>0 ( n -- ) 0 > [ win32-error ] when ;
 : win32-error<0 ( n -- ) 0 < [ win32-error ] when ;
-: win32-error<>0 ( n -- ) [ win32-error ] unless-zero ;
+: win32-error<>0 ( n -- ) zero? [ win32-error ] unless ;
 
 : check-invalid-handle ( handle -- handle )
     dup INVALID_HANDLE_VALUE = [ win32-error ] when ;