# HG changeset patch # User brian@potato.bsdtelecom.net # Date 1254959337 0 # Node ID a624f6dc89d9471dbbaf174e23cd4041e374ccf8 # Parent 835500c42a0e370b001679c04d4118656f19e9f5 Fixed warnings with unsigned ints diff -r 835500c42a0e370b001679c04d4118656f19e9f5 -r a624f6dc89d9471dbbaf174e23cd4041e374ccf8 nglog.cc --- a/nglog.cc Wed Oct 07 23:39:01 2009 +0000 +++ b/nglog.cc Wed Oct 07 23:48:57 2009 +0000 @@ -29,7 +29,7 @@ void unique_add(vector& v, string& s) { - float i; + unsigned int i; bool found = false; for (i=0; i < v.size(); i++) { @@ -46,7 +46,7 @@ string get_param(vector v, string key) { - float i; + unsigned int i; for (i=0; i < v.size(); i++) { Param e = v.at(i); @@ -61,7 +61,7 @@ PreparedLog prepareLog(istream& input_stream) { string line; - float linenum = 0; + unsigned int linenum = 0; PreparedLog return_log; while (getline (input_stream, line)) { @@ -126,7 +126,7 @@ void write_csv(PreparedLog& plog, ostream& outfile) { outfile << "\"timestamp\",\"url\","; - float c; + unsigned int c; for (c=0; c < plog.columns.size(); c++) { string f = plog.columns.at(c); @@ -138,12 +138,12 @@ } outfile << endl; - float i; + unsigned int i; for (i=0; i < plog.requests.size(); i++) { Request n = plog.requests.at(i); outfile << "\"" << n.timestamp << "\"," << "\"" << n.url << "\","; - float b; + unsigned int b; for (b=0; b < plog.columns.size(); b++) { string e = plog.columns.at(b); @@ -159,7 +159,7 @@ string view_vector(vector& v) { - float i; + unsigned int i; ostringstream oss; for (i=0; i < v.size(); i++) {