Commit 3730cde8 authored by claes's avatar claes

wb history to html conversion bugfix

parent a7a1c313
...@@ -225,7 +225,7 @@ void wb_log::generate_html( char *filename, pwr_tStatus *sts) ...@@ -225,7 +225,7 @@ void wb_log::generate_html( char *filename, pwr_tStatus *sts)
if ( cbctx.v.size() > max_size) if ( cbctx.v.size() > max_size)
to = cbctx.v.size() - max_size; to = cbctx.v.size() - max_size;
for ( unsigned int i = cbctx.v.size() - 1; i >= to; i--) { for ( int i = (int)cbctx.v.size() - 1; i >= (int)to; i--) {
if ( !cbctx.v[i].disable) if ( !cbctx.v[i].disable)
fprintf( fp, "%s\n", cbctx.v[i].text.c_str()); fprintf( fp, "%s\n", cbctx.v[i].text.c_str());
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment