Silence warning

This commit is contained in:
Jan Möbius
2023-08-23 14:35:16 +02:00
parent 9bd67261a6
commit 1d9164c11c

View File

@@ -27,12 +27,10 @@ std::string int2roman( size_t decimal, size_t length )
size_t power; // power of ten
size_t index; // Indexes thru values to subtract
std::string roman;
std::string roman('\0');
roman.reserve(length);
roman[ 0 ] = '\0';
for ( power = 0; power < nrows; power++ )
for ( index = 0; index < ncols; index++ )
while ( decimal >= table_arabs[ power ][ index ] )