Skip to content

Commit

Permalink
Use correct types for string::find() results
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Mar 16, 2022
1 parent 90f54a5 commit 20fbe9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apricots/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ void init_gameconstants(gamedata &g) {

string getConfig(string config, string name, string defval) {
// Pull out just the name line
unsigned int ndx = config.find(name);
size_t ndx = config.find(name);

if (ndx == string::npos) {
return defval;
Expand All @@ -240,7 +240,7 @@ string getConfig(string config, string name, string defval) {

int getConfig(string config, string name, int defval, int min, int max) {
// Pull out just the name line
unsigned int ndx = config.find(name);
size_t ndx = config.find(name);

if (ndx == string::npos) {
return defval;
Expand Down

0 comments on commit 20fbe9e

Please sign in to comment.