porting fixes from Justin

This commit is contained in:
Vern Paxson 2021-04-21 15:15:33 -07:00
parent 22d060d461
commit bbe5ab39f6
2 changed files with 2 additions and 2 deletions

View file

@ -721,7 +721,7 @@ std::string CPPCompile::GenVal(const ValPtr& v)
return GenEnum(t, v);
if ( tag == TYPE_PORT )
return Fmt(v->AsCount());
return Fmt(int(v->AsCount()));
if ( it == TYPE_INTERNAL_DOUBLE )
return Fmt(v->AsDouble());