Skip to content

Commit b109f04

Browse files
authored
Operator precedence is hard, especially in pseudo code
1 parent 711c0dd commit b109f04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ their mapping to format strings):
2424

2525
* `>` == dataptr++ (`%1$.*1$d %2$hn`)
2626
* `<` == dataptr-- (`%1$65535d%1$.*1$d%2$hn`)
27-
* `+` == \*dataptr++ (`%3$.*3$d %4$hhn`)
28-
* `-` == \*dataptr-- (`%3$255d%3$.*3$d%4$hhn` -- plus check for ovfl)
27+
* `+` == (\*dataptr)++ (`%3$.*3$d %4$hhn`)
28+
* `-` == (\*dataptr)-- (`%3$255d%3$.*3$d%4$hhn` -- plus check for ovfl)
2929
* `.` == putchar(\*dataptr) (`%3$.*3$d%5$hn`)
3030
* `,` == getchar(dataptr) (`%13$.*13$d%4$hn`)
3131
* `[` == if (\*dataptr == 0) goto `]` (`%1$.*1$d%10$.*10$d%2$hn`)

0 commit comments

Comments
 (0)