mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 16:47:28 +01:00
Tighten up low_bits / high_bits bounds checking
This commit is contained in:
1 parent
8d05db48a4
commit
fd2d6e5b8a
3 files changed
+52
-22
No files matched your search
@@ -81,6 +81,7 @@ var Types = []string{
|
||||
var Funcs = []string{
|
||||
// TODO: some methods like "mark" should probably have a trailing "!".
|
||||
|
||||
// TODO: refine n's type from u32 to u32[..8], u32[..16], etc.
|
||||
"u8.high_bits(n u32)(ret u8)",
|
||||
"u8.low_bits(n u32)(ret u8)",
|
||||
"u16.high_bits(n u32)(ret u16)",
|
||||
|
||||
Reference in new issue
Block a user