Tighten up low_bits / high_bits bounds checking

This commit is contained in:
Nigel Tao committed 2018-04-21 15:44:12 +10:00
1 parent 8d05db48a4
commit fd2d6e5b8a
3 files changed
+52 -22

No files matched your search

+1
View File
@@ -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)",