Fix float-conversion warning, bug1229.

This commit is contained in:
Wilson Snyder
2017-10-11 19:01:37 -04:00
parent bc813fddcc
commit de35c90847
9 changed files with 21 additions and 13 deletions
+1 -1
View File
@@ -817,7 +817,7 @@ void _VL_VINT_TO_STRING(int obits, char* destoutp, WDataInP sourcep) {
void _VL_STRING_TO_VINT(int obits, void* destp, size_t srclen, const char* srcp) {
// Convert C string to Verilog format
int bytes = VL_BYTES_I(obits);
size_t bytes = VL_BYTES_I(obits);
char* op = reinterpret_cast<char*>(destp);
if (srclen > bytes) srclen = bytes; // Don't overflow destination
size_t i;