From c2de135905bce2cf040cd8d4e9adc9d844de555a Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 2 Oct 2018 16:16:36 +0200 Subject: [PATCH] C++ codegen: map nil to nullptr --- lib/nimbase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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