mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-17 15:01:23 +00:00
split const integers into signed and unsigned
This commit is contained in:
@ -986,11 +986,15 @@ impl ToTokens for ast::Const {
|
||||
FloatLiteral(f) => {
|
||||
let f = Literal::f64_unsuffixed(f);
|
||||
quote!(#f)
|
||||
}
|
||||
IntegerLiteral(i) => {
|
||||
},
|
||||
SignedIntegerLiteral(i) => {
|
||||
let i = Literal::i64_unsuffixed(i);
|
||||
quote!(#i)
|
||||
}
|
||||
},
|
||||
UnsignedIntegerLiteral(i) => {
|
||||
let i = Literal::u64_unsuffixed(i);
|
||||
quote!(#i)
|
||||
},
|
||||
Null => unimplemented!(),
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user