Skip to content

Commit 66d313d

Browse files
committed
Teach the typechecker that uints are integral types. Closes #88.
1 parent d608c09 commit 66d313d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/boot/me/type.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ let process_crate (cx:ctxt) (crate:Ast.crate) : unit =
302302

303303
let integral (ty:Ast.ty) : bool =
304304
match ty with
305-
Ast.TY_int | Ast.TY_mach TY_u8 | Ast.TY_mach TY_u16
305+
Ast.TY_int | Ast.TY_uint | Ast.TY_mach TY_u8 | Ast.TY_mach TY_u16
306306
| Ast.TY_mach TY_u32 | Ast.TY_mach TY_u64 | Ast.TY_mach TY_i8
307307
| Ast.TY_mach TY_i16 | Ast.TY_mach TY_i32
308308
| Ast.TY_mach TY_i64 ->

0 commit comments

Comments
 (0)