diff --git a/examples/test2.cpp b/examples/test2.cpp index 04d40ca..f209df1 100644 --- a/examples/test2.cpp +++ b/examples/test2.cpp @@ -36,7 +36,7 @@ void parseOptions(int argc, char** argv) { try { - CmdLine cmd(argv[0], "this is a message", "0.99" ); + CmdLine cmd("this is a message", ' ', "0.99" ); // // Define arguments @@ -85,7 +85,7 @@ void parseOptions(int argc, char** argv) _utest = utest.getValue(); vector v = mtest.getValue(); - for ( int i = 0; i < v.size(); i++ ) + for ( int i = 0; (unsigned int)i < v.size(); i++ ) cout << i << " " << v[i] << endl; } catch ( ArgException e ) diff --git a/examples/test3.cpp b/examples/test3.cpp index 01d4a19..f24e64c 100644 --- a/examples/test3.cpp +++ b/examples/test3.cpp @@ -71,11 +71,11 @@ void parseOptions(int argc, char** argv) _ztest = ztest.getValue(); vector vi = itest.getValue(); - for ( int i = 0; i < vi.size(); i++ ) + for ( int i = 0; (unsigned int)i < vi.size(); i++ ) cout << "[-i] " << i << " " << vi[i] << endl; vector v = mtest.getValue(); - for ( int i = 0; i < v.size(); i++ ) + for ( int i = 0; (unsigned int)i < v.size(); i++ ) cout << "[ ] " << i << " " << v[i] << endl; } catch ( ArgException e )