FileWrite::setMatFile : type of iterator should be size_t

This commit is contained in:
Ariel Elkin
2014-04-07 15:20:37 +01:00
parent 1468ad7e12
commit dbecf1f7f0

View File

@@ -570,7 +570,7 @@ bool FileWrite :: setMatFile( std::string fileName )
struct MatHeader hdr;
strcpy( hdr.heading,"MATLAB 5.0 MAT-file, Generated using the Synthesis ToolKit in C++ (STK). By Perry R. Cook and Gary P. Scavone." );
for ( std::vector<char>::size_type i =strlen(hdr.heading); i<124; i++ ) hdr.heading[i] = ' ';
for ( size_t i =strlen(hdr.heading); i<124; i++ ) hdr.heading[i] = ' ';
// Header Flag Fields
hdr.hff[0] = (SINT16) 0x0100; // Version field