From 40c4fb1ac00bfe3b2f84e9948f5550533b83db6b Mon Sep 17 00:00:00 2001 From: Hugh Date: Fri, 24 Mar 2017 14:55:00 +0800 Subject: [PATCH] val_null is a value, not a function --- project/src/common/ExternalInterface.cpp | 2 +- project/src/common/FreeType.cpp | 2 +- project/src/opengl/OGLExport.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/project/src/common/ExternalInterface.cpp b/project/src/common/ExternalInterface.cpp index e145701b2..bf1f6f40d 100644 --- a/project/src/common/ExternalInterface.cpp +++ b/project/src/common/ExternalInterface.cpp @@ -820,7 +820,7 @@ bool ByteArray::LittleEndian() ByteArray::ByteArray(const char *inResourceName) { - mValue = val_null(); + mValue = val_null; if (gResourceFactory) { mValue = val_call1(gResourceFactory->get(),alloc_string(inResourceName)); diff --git a/project/src/common/FreeType.cpp b/project/src/common/FreeType.cpp index a38595be5..99cc23e9c 100644 --- a/project/src/common/FreeType.cpp +++ b/project/src/common/FreeType.cpp @@ -828,7 +828,7 @@ value get_familyname_from_sfnt_name(FT_Face face) } } - return val_null(); + return val_null; } } // end namespace diff --git a/project/src/opengl/OGLExport.cpp b/project/src/opengl/OGLExport.cpp index 62c8ad39c..9069cf383 100644 --- a/project/src/opengl/OGLExport.cpp +++ b/project/src/opengl/OGLExport.cpp @@ -1936,7 +1936,7 @@ value nme_gl_bind_texture(value inTarget, value inTexture) return alloc_null(); } - value glObject = val_null(); + value glObject = val_null; if (val_is_int(inTexture)) {