yeptris 0.6.98.0-riscv64-linux-gnu → 0.6.100.0-riscv64-linux-gnu
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 820b3a24a88dd3b1f6c6dddda5da1ef0b9e427f7ed353a2a5e167ccea8f016da
|
|
4
|
+
data.tar.gz: 6cc84755c3ccc3a27b36f0d9d79dce2bb15fe957574ceae631c2e548f28aa31c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 30232f4a438b2420b8e77eea9eb02567b93c98d3dd705eed8cff2e842ab7c4a2e92eb8832d30645be6b2b95bd73495d189ec06645a77d4a59186dfa66cfb114d
|
|
7
|
+
data.tar.gz: 1f4906a535dd6df2f210e55b328773c1293f1564780ee979cf048b6e61abb014588b00874e74f7c6363f55e73b0ef7d1d0ce3f6f0c79e0b92e00c3582997a57d
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
|
|
12
12
|
#define YEPTRIS_VERSION_MAJOR 0
|
|
13
13
|
#define YEPTRIS_VERSION_MINOR 6
|
|
14
|
-
#define YEPTRIS_VERSION_PATCH
|
|
15
|
-
#define YEPTRIS_VERSION_STRING "0.6.
|
|
14
|
+
#define YEPTRIS_VERSION_PATCH 100
|
|
15
|
+
#define YEPTRIS_VERSION_STRING "0.6.100"
|
|
16
16
|
|
|
17
17
|
#ifdef __cplusplus
|
|
18
18
|
extern "C" {
|
|
Binary file
|
data/lib/yeptris.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Yeptris
|
|
4
4
|
# The gem's version lives in the parent namespace's file — the last
|
|
5
5
|
# internal require (yeptris/version) retired with it.
|
|
6
|
-
VERSION = "0.6.
|
|
6
|
+
VERSION = "0.6.100.0".freeze
|
|
7
7
|
|
|
8
8
|
# Informational notices are OPT-IN (yeptris-ruby#217): consumers
|
|
9
9
|
# embed yeptris inside CLIs that assert clean stderr, and a
|
|
@@ -366,9 +366,15 @@ static int cbor_key_diag(yep_cdec* c, uint8_t mt, uint64_t val, double dv) {
|
|
|
366
366
|
case 0:
|
|
367
367
|
n = cbor_u64dec(val, buf);
|
|
368
368
|
break;
|
|
369
|
-
case 1:
|
|
369
|
+
case 1: /* nint: the value is -1-val — the scalar arm's +1 (#1773:
|
|
370
|
+
* the key text rendered val, one past the true value) */
|
|
371
|
+
if (val == UINT64_MAX) {
|
|
372
|
+
/* -1-2^64 is past the u64 magnitude: the float text, the
|
|
373
|
+
* scalar arm's own law */
|
|
374
|
+
return cbor_float_node(c, -((double)val + 1.0), 1);
|
|
375
|
+
}
|
|
370
376
|
buf[0] = '-';
|
|
371
|
-
n = 1 + cbor_u64dec(val, buf + 1);
|
|
377
|
+
n = 1 + cbor_u64dec(val + 1, buf + 1);
|
|
372
378
|
break;
|
|
373
379
|
case 2: { /* h'hex' */
|
|
374
380
|
buf[0] = 'h';
|
|
@@ -557,6 +563,13 @@ static int cbor_item(yep_cdec* c) {
|
|
|
557
563
|
|
|
558
564
|
/* major type 7: simple values and floats */
|
|
559
565
|
double dv = 0;
|
|
566
|
+
/* strict: the simple-value key classes reject here — the mt 0/1
|
|
567
|
+
* arms and the float fallthrough carry their own gates, and this
|
|
568
|
+
* one was the #1773 gap (bool/null/undefined/simple(N) keys
|
|
569
|
+
* passed where the header contract says non-text keys reject) */
|
|
570
|
+
if (key_slot && c->strict && ai < 25) {
|
|
571
|
+
CBOR_REJECT("string key required");
|
|
572
|
+
}
|
|
560
573
|
switch (ai) {
|
|
561
574
|
case 20:
|
|
562
575
|
if (key_slot) {
|