Fix a 64-bit compilation error
authorMikko Rasa <tdb@tdb.fi>
Wed, 30 May 2012 17:36:56 +0000 (17:36 +0000)
committerMikko Rasa <tdb@tdb.fi>
Wed, 30 May 2012 17:36:56 +0000 (17:36 +0000)
examples/ls.cpp

index fd4d71f382bd6212c8e8d9ec0adb3c74636be12d..a31c19bf7240364d514f95b73161b2e8bb3b56ae 100644 (file)
@@ -122,7 +122,7 @@ void Ls::print_rows(const list<Row> &rows)
                if(row.size()>col_width.size())
                        col_width.resize(row.size(), 0);
                for(unsigned j=0; j<row.size(); ++j)
-                       col_width[j] = max(col_width[j], row[j].size());
+                       col_width[j] = max<unsigned>(col_width[j], row[j].size());
        }
 
        for(list<Row>::const_iterator i=rows.begin(); i!=rows.end(); ++i)