Change argument to Tempvar constructor to size_t, avoids conversion warning in template construction

This commit is contained in:
Tim Wojtulewicz 2023-02-17 16:35:27 -07:00 committed by Tim Wojtulewicz
parent 6398329cd5
commit 718cced7cd
2 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ namespace zeek::detail
class TempVar
{
public:
TempVar(int num, const TypePtr& t, ExprPtr rhs);
TempVar(size_t num, const TypePtr& t, ExprPtr rhs);
const char* Name() const { return name.data(); }
const zeek::Type* Type() const { return type.get(); }