1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-14 17:14:07 +01:00

Clean up most remaining MSVC warnings.

This commit is contained in:
James Crook
2018-01-06 13:03:48 +00:00
parent b2f8cf180f
commit d2fe7b1757
21 changed files with 685 additions and 667 deletions

View File

@@ -121,7 +121,7 @@ bool XMLValueChecker::IsGoodIntForRange(const wxString & strInt, const wxString
if( lenStrInt < 1 )
return false;
int offset = (strInt[0] == '-') ?1:0;
size_t offset = (strInt[0] == '-') ?1:0;
if( lenStrInt <= offset )
return false;// string too short, no digits in it.
@@ -134,7 +134,7 @@ bool XMLValueChecker::IsGoodIntForRange(const wxString & strInt, const wxString
return false; // not a digit
// All chars were digits.
if( (lenStrInt - offset) < lenMAXABS )
if( lenStrInt < (lenMAXABS + offset) )
return true; // too few digits to overflow.
// Numerical part is same length as strMAXABS