Skip to content

Commit

Permalink
[patch] Fix bug in grammar spec of integer
Browse files Browse the repository at this point in the history
This should be decimal, not binary.

Co-authored-by: Mike Urbach <[email protected]>
Signed-off-by: Schuyler Eldridge <[email protected]>
  • Loading branch information
seldridge and mikeurbach committed Jul 28, 2023
1 parent 9280ca4 commit 5d8c15c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions revision-history.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ revisionHistory:
- Fix printf grammar, expect commas between arguments.
- Fix spec bug where string-encoded literals were still used in examples
of "Constant Integer Expression".
- Fix bug in grammar where int was incorrectly specified as being binary
instead of decimal.
abi:
- Add initial description of property types.
# Information about the old versions. This should be static.
Expand Down
2 changes: 1 addition & 1 deletion spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -3679,7 +3679,7 @@ digit_dec = digit_oct | "8" | "9" ;
digit_hex = digit_dec
| "A" | "B" | "C" | "D" | "E" | "F"
| "a" | "b" | "c" | "d" | "e" | "f" ;
int = [ "-" ] , digit_bin , { digit_bin } ;
int = [ "-" ] , digit_dec , { digit_dec } ;
(* Radix-specified Integer Literals *)
rint =
Expand Down

0 comments on commit 5d8c15c

Please sign in to comment.