Skip to content

Commit

Permalink
from1.0: fix register type signess
Browse files Browse the repository at this point in the history
  • Loading branch information
Vojtech Havel committed Mar 9, 2022
1 parent 2ab374f commit cd30bbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontends/p4/fromv1.0/programStructure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2063,7 +2063,7 @@ ProgramStructure::convert(const IR::Register* reg, cstring newName,
regElementType = new IR::Type_Name(new IR::Path(str->name));
// use provided type
} else if (reg->width > 0) {
regElementType = IR::Type_Bits::get(reg->width);
regElementType = IR::Type_Bits::get(reg->width, reg->signed_);
} else if (reg->layout) {
cstring newName = ::get(registerLayoutType, reg->layout);
if (newName.isNullOrEmpty())
Expand Down

0 comments on commit cd30bbb

Please sign in to comment.