From 1edf6a7586930370e471f5ade6215f8e38a114c3 Mon Sep 17 00:00:00 2001 From: user95401 <90561697+user95401@users.noreply.github.com> Date: Wed, 18 Dec 2024 12:22:39 +0400 Subject: [PATCH] Fucking 64 vs 32 moment --- src/_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_main.cpp b/src/_main.cpp index 7fb864f..adabea0 100644 --- a/src/_main.cpp +++ b/src/_main.cpp @@ -13,8 +13,8 @@ class $modify(CCSpriteExt, CCSprite) { class $modify(CCString) { const char* getCString() { //log::debug("{}(int:{})->{}", this, (int)this, __func__); - if ((int)this == 0) log::error("{}(int:{})->{}", this, (int)this, __func__); - return (int)this != 0 ? CCString::getCString() : CCString::createWithFormat("")->getCString(); + if ((int)(size_t)this == 0) log::error("{}(int:{})->{}", this, (int)(size_t)this, __func__); + return (int)(size_t)this != 0 ? CCString::getCString() : CCString::createWithFormat("")->getCString(); } };