| ... | @@ -248,7 +248,7 @@ pub fn callMain() u8 { | ... | @@ -248,7 +248,7 @@ pub fn callMain() u8 { |
| 248 | return 0; | 248 | return 0; |
| 249 | }, | 249 | }, |
| 250 | .Int => |info| { | 250 | .Int => |info| { |
| 251 | if (info.bits != 8) { | 251 | if (info.bits != 8 or info.is_signed) { |
| 252 | @compileError(bad_main_ret); | 252 | @compileError(bad_main_ret); |
| 253 | } | 253 | } |
| 254 | return root.main(); | 254 | return root.main(); |
| ... | @@ -264,7 +264,7 @@ pub fn callMain() u8 { | ... | @@ -264,7 +264,7 @@ pub fn callMain() u8 { |
| 264 | switch (@typeInfo(@TypeOf(result))) { | 264 | switch (@typeInfo(@TypeOf(result))) { |
| 265 | .Void => return 0, | 265 | .Void => return 0, |
| 266 | .Int => |info| { | 266 | .Int => |info| { |
| 267 | if (info.bits != 8) { | 267 | if (info.bits != 8 or info.is_signed) { |
| 268 | @compileError(bad_main_ret); | 268 | @compileError(bad_main_ret); |
| 269 | } | 269 | } |
| 270 | return result; | 270 | return result; |