Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 20fbe9e

Browse files
committed
Use correct types for string::find() results
1 parent 90f54a5 commit 20fbe9e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apricots/init.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ void init_gameconstants(gamedata &g) {
219219

220220
string getConfig(string config, string name, string defval) {
221221
// Pull out just the name line
222-
unsigned int ndx = config.find(name);
222+
size_t ndx = config.find(name);
223223

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

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

245245
if (ndx == string::npos) {
246246
return defval;

0 commit comments

Comments
 (0)