mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
Fix some MSVC++ warnings
This commit is contained in:
+1
-1
@@ -258,7 +258,7 @@ string V3Error::lineStr (const char* filename, int lineno) {
|
||||
if (fnslashp) filename = fnslashp+1;
|
||||
out<<filename<<":"<<dec<<lineno<<":";
|
||||
const char* spaces = " ";
|
||||
int numsp = out.str().length(); if (numsp>20) numsp = 20;
|
||||
size_t numsp = out.str().length(); if (numsp>20) numsp = 20;
|
||||
out<<(spaces + numsp);
|
||||
return out.str();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user