Use u64 instead of i64 in Int type (#11356)

## Summary

I believe the value here is always unsigned, since we represent `-42` as
a unary operator on `42`.
This commit is contained in:
Charlie Marsh 2024-05-10 09:35:15 -04:00 committed by GitHub
parent 1f794077ec
commit 35ba3c91ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 35 additions and 39 deletions

View file

@ -1582,15 +1582,15 @@ mod tests {
ctx: ExprContext::Load,
});
let constant_one = Expr::NumberLiteral(ExprNumberLiteral {
value: Number::Int(1.into()),
value: Number::Int(Int::from(1u8)),
range: TextRange::default(),
});
let constant_two = Expr::NumberLiteral(ExprNumberLiteral {
value: Number::Int(2.into()),
value: Number::Int(Int::from(2u8)),
range: TextRange::default(),
});
let constant_three = Expr::NumberLiteral(ExprNumberLiteral {
value: Number::Int(3.into()),
value: Number::Int(Int::from(3u8)),
range: TextRange::default(),
});
let type_var_one = TypeParam::TypeVar(TypeParamTypeVar {