Skip to content
This repository has been archived by the owner on Mar 29, 2020. It is now read-only.

Commit

Permalink
Eliminate signed/unsigned mismatch in CK2Version
Browse files Browse the repository at this point in the history
  • Loading branch information
Idhrendur committed Jun 8, 2013
1 parent 795fba4 commit 0f1cf96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Data Files/Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -435,4 +435,5 @@ Revision Log Message
428 Add 1.10 saves to test suite
429 Update CK2 version information
430 Update test configurations
431 Fix typos in converter mod
431 Fix typos in converter mod
432 Eliminate signed/unsigned mismatch in CK2Version
4 changes: 2 additions & 2 deletions Source/CK2World/CK2Version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ CK2Version::CK2Version(string versionString)

periodPos++;
minor = atoi( versionString.substr(periodPos, 2).c_str() );
if (versionString.size() > periodPos + 3)
if (versionString.size() > (unsigned int)(periodPos + 3))
{
revision = atoi( versionString.substr(periodPos + 3, 1).c_str() );
}
Expand All @@ -29,7 +29,7 @@ CK2Version::CK2Version(string versionString)

periodPos++;
minor = atoi( versionString.substr(periodPos, 2).c_str() );
if (versionString.size() > periodPos + 3)
if (versionString.size() > (unsigned int)(periodPos + 3))
{
revision = atoi( versionString.substr(periodPos + 3, 1).c_str() );
}
Expand Down

0 comments on commit 0f1cf96

Please sign in to comment.