git @ Cat's Eye Technologies linapple / 8b3d383
SDL_GetBasePath, silence signed/unsigned compare This warning should be fixed in SDL since we're just borrowing their code wholesale for the moment, but rc is already known to be > 0, so it's safe to simply cast it here. T. Joseph Carter 3 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
143143 const int rc = (int) SDL_snprintf(path, sizeof(path),
144144 "/proc/%llu/exe",
145145 (unsigned long long) getpid());
146 if ( (rc > 0) && (rc < sizeof(path)) ) {
146 if ( (rc > 0) && ((unsigned)rc < sizeof(path)) ) {
147147 retval = readSymLink(path);
148148 }
149149 }