Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Compilation Error: pointer - boolean comparison #132

Open
bnlrnz opened this issue Jun 19, 2018 · 1 comment
Open

Compilation Error: pointer - boolean comparison #132

bnlrnz opened this issue Jun 19, 2018 · 1 comment

Comments

@bnlrnz
Copy link

bnlrnz commented Jun 19, 2018

if (GetConnectionByGUID(participantListIn[index], worldId)==false)

Iso c++ forbids comparison between pointer and integer.

The "== false" should be removed or replaced by "== nullptr".

@Luke1410
Copy link

This has already been reported before. See pull request #29 and the duplicate in #56. Most likely several RakNet forks already incorporate that fix and it's also already integrated in SLikeNet since version 0.1.0 (see https://www.slikenet.com/ if interested).

Luke1410 added a commit to SLikeSoft/SLikeNet that referenced this issue Sep 2, 2019
   - added CMake configuration and version configuration support (facebookarchive#132)
   - added slikenet.h to simplify CMake include directory detection (facebookarchive#132)
   - tweaked the way to specify the version number (facebookarchive#132)
   - use version based install directories to support installing multiple versions in parallel (#222)
   - use EXPORT handling for the CMake integration (facebookarchive#132)
   - preps for CMake >= 2.8 make use of target_include_directories() (#222)
   - minor tweaks (facebookarchive#130)
Luke1410 added a commit to SLikeSoft/SLikeNet that referenced this issue Sep 8, 2019
Luke1410 added a commit to SLikeSoft/SLikeNet that referenced this issue Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants