-
-
Notifications
You must be signed in to change notification settings - Fork 836
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix[lang]: allow
print()
schema larger than 32 bytes (#4456)
historically, the schema generated internally by the `print()` builtin was not allowed to be larger than 32 bytes, ostensibly to simplify the code for generating the IR, leading to a panic if the user tried to print a sufficiently complex type (i.e. with an ABI type larger than 32 bytes). this commit replaces the code for generating the schema in IR with `Expr._make_bytelike` (along with a small refactor for `_make_bytelike` to make it a classmethod instead of an instance method), generalizing to schemas of any size.
- Loading branch information
1 parent
8da4e6f
commit 9e396fb
Showing
2 changed files
with
9 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters