Beta Shell
v2.0 ยท web2.us.cloudlogin.co
[FM]
[CMD]
[PHP]
[DB]
[INFO]
[SEC]
File Manager
~
/
usr
/
local
/
rvm
/
src
/
rvm
/
patches
/
rbx
/
2.5.2
Upload
4 items
Name
Size
Perms
Modified
Actions
[ .. / .. ]
clean_bundler_environment_before_running_homebrew.diff
758 B
-rw-rw-r--
2021-01-15 18:41:29
Edit
Del
this_can_not_be_null.diff
799 B
-rw-rw-r--
2021-01-15 18:41:29
Edit
Del
Editing: this_can_not_be_null.diff
(799 B)
Path: /usr/local/rvm/src/rvm/patches/rbx/2.5.2/this_can_not_be_null.diff
Back
From 50aa7356e3c750fadb6665508e66d2f6923c7529 Mon Sep 17 00:00:00 2001 From: Yorick Peterse <yorickpeterse@gmail.com> Date: Sat, 28 Mar 2015 14:17:27 +0100 Subject: [PATCH] "this" can not be null Per clang 3.6 checking if "this" is null or not results in a compiler error. --- vm/oop.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/oop.hpp b/vm/oop.hpp index 1c55b71..8298f04 100644 --- a/vm/oop.hpp +++ b/vm/oop.hpp @@ -610,7 +610,7 @@ Object* const cUndef = reinterpret_cast<Object*>(0x22L); } void validate() const { - assert(this && (!reference_p() || (type_id() > InvalidType && type_id() < LastObjectType))); + assert(!reference_p() || (type_id() > InvalidType && type_id() < LastObjectType)); } friend class TypeInfo; -- 2.3.5