Skip to content

Commit

Permalink
Fucking 64 vs 32 moment
Browse files Browse the repository at this point in the history
  • Loading branch information
user95401 authored Dec 18, 2024
1 parent 2365e4e commit 1edf6a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
};

Expand Down

0 comments on commit 1edf6a7

Please sign in to comment.