~arestifo/crystal-cbor

crystal-cbor: Fixes read_value SimpleValueT parsing: finish_token! is now called. v1 APPLIED

~karchnu: 1
 Fixes read_value SimpleValueT parsing: finish_token! is now called.

 1 files changed, 1 insertions(+), 0 deletions(-)
#345039 .build.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~arestifo/crystal-cbor/patches/15133/mbox | git am -3
Learn more about email & git

[PATCH crystal-cbor] Fixes read_value SimpleValueT parsing: finish_token! is now called. Export this patch

From: Karchnu <karchnu@karchnu.fr>

---
In the read_value function, SimpleValueT tokens made the parsing loop.
After reading the RFC, I still do not see why this was this way. I think
it was a simple mistake.

 src/cbor/decoder.cr | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/cbor/decoder.cr b/src/cbor/decoder.cr
index 66ba0f7..510fb45 100644
--- a/src/cbor/decoder.cr
+++ b/src/cbor/decoder.cr
@@ -25,6 +25,7 @@ class CBOR::Decoder
      finish_token!
      token.value
    when Token::SimpleValueT
      finish_token!
      token.value.to_t
    when Token::ArrayT
      finish_token!
-- 
2.26.2
crystal-cbor/patches/.build.yml: SUCCESS in 25s

[Fixes read_value SimpleValueT parsing: finish_token! is now called.][0] from [~karchnu][1]

[0]: https://lists.sr.ht/~arestifo/crystal-cbor/patches/15133
[1]: mailto:karchnu@karchnu.fr

✓ #345039 SUCCESS crystal-cbor/patches/.build.yml https://builds.sr.ht/~arestifo/job/345039
It was definetely a mistake, thanks for the fix.

Applied in d5a8c0ef9d81d6249ed6de1a2709afa0239a1b5f