Fix some more C++ (not C) compile errors

This commit is contained in:
Nigel Tao committed 2018-06-30 13:41:19 +10:00
1 parent e43aa62d1c
commit 008b83e4b4
4 files changed
+17 -13

No files matched your search

+1 -1
View File
@@ -445,7 +445,7 @@ func (g *gen) writeBuiltinCallSuspendibles(b *buffer, n *a.Expr, depth uint32) e
return err
}
b.printf("if (%s > iobounds1_src - ioptr_src) {\n", scratchName)
b.printf("if (%s > ((uint64_t)(iobounds1_src - ioptr_src))) {\n", scratchName)
b.printf("%s -= iobounds1_src - ioptr_src;\n", scratchName)
b.printf("ioptr_src = iobounds1_src;\n")