From 5d8c15cc17b4bee4fc01a9f829f745ede7932b54 Mon Sep 17 00:00:00 2001 From: Schuyler Eldridge Date: Fri, 28 Jul 2023 17:44:20 -0400 Subject: [PATCH] [patch] Fix bug in grammar spec of integer This should be decimal, not binary. Co-authored-by: Mike Urbach Signed-off-by: Schuyler Eldridge --- revision-history.yaml | 2 ++ spec.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/revision-history.yaml b/revision-history.yaml index 3a0b84ff..298885b1 100644 --- a/revision-history.yaml +++ b/revision-history.yaml @@ -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. diff --git a/spec.md b/spec.md index 1716730d..fdd55e9a 100644 --- a/spec.md +++ b/spec.md @@ -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 =