diff --git a/lib/nimbase.h b/lib/nimbase.h index c04d378c54..017f0d5f63 100644 --- a/lib/nimbase.h +++ b/lib/nimbase.h @@ -280,7 +280,7 @@ namespace USE_NIM_NAMESPACE { # define NIM_FALSE false # endif # define NIM_BOOL bool -# define NIM_NIL 0 +# define NIM_NIL nullptr #else # ifdef bool # define NIM_BOOL bool