From dbecf1f7f04597d830b0092065d8f13ae9af55f4 Mon Sep 17 00:00:00 2001 From: Ariel Elkin Date: Mon, 7 Apr 2014 15:20:37 +0100 Subject: [PATCH] FileWrite::setMatFile : type of iterator should be size_t --- src/FileWrite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FileWrite.cpp b/src/FileWrite.cpp index c8fed24..85b5496 100644 --- a/src/FileWrite.cpp +++ b/src/FileWrite.cpp @@ -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::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