Skip to content

Commit

Permalink
Small syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xarantolus committed Dec 31, 2022
1 parent 70fdacd commit d693175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/web/src/components/Initial.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default defineComponent({
case 1n: {
// WRITE syscall MUST write to stdout or stderr
// Actually this also supports also "writing" to stdin, as this also works in certain circumstances: https://stackoverflow.com/a/7680234
if (rdi != BigInt(0) && rdi != BigInt(1) && rdi != BigInt(2)) {
if (rdi != 0n && rdi != 1n && rdi != 2n) {
throw new Error(`WRITE syscall: cannot write non-std{out,err} (!= 1,2) fds, but tried ${rdi}`);
}
Expand Down

0 comments on commit d693175

Please sign in to comment.