Minor code cleanup.

This commit is contained in:
Jim Evins
2017-11-25 16:54:37 -05:00
parent ae76470ea9
commit c6c52a8895
11 changed files with 24 additions and 16 deletions
+3 -3
View File
@@ -142,12 +142,12 @@ namespace glbarcode
int sum = 0;
for ( unsigned int i=0; i < cookedData.size(); i++ )
{
int cValue = alphabet.find( toupper( cookedData[i] ) );
size_t cValue = alphabet.find( toupper( cookedData[i] ) );
code += symbols[cValue];
code += "i";
sum += cValue;
sum += int(cValue);
}
if ( checksum() )
@@ -190,7 +190,7 @@ namespace glbarcode
{
/* determine width and establish horizontal scale, based on original cooked data */
double dataSize = cookedData.size();
double dataSize = double( cookedData.size() );
double minL;
if ( !checksum() )
{