Prevent null ref

This commit is contained in:
Justin Ethier 2017-04-24 16:16:00 +00:00
parent 8b88b8d36d
commit 7a7419a3f4

View file

@ -1043,7 +1043,7 @@ typedef union {
#define return_copy(ptr, obj) \ #define return_copy(ptr, obj) \
{ \ { \
tag_type t; \ tag_type t; \
if (is_value_type(obj)) \ if (!is_object_type(obj)) \
return obj; \ return obj; \
t = type_of(obj); \ t = type_of(obj); \
if (t == boolean_tag || /* Pre-allocated */ \ if (t == boolean_tag || /* Pre-allocated */ \