guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 3ac34584f141c981a1412724a602a20e8cdb89a1
Author: David Elsing <[email protected]>
AuthorDate: Tue Jul 29 16:19:32 2025 +0200

    gnu: sajson-for-gemmi: Report string type also for numbers.
    
    This is required by gemmi, where some tests fail otherwise.
    
    * gnu/packages/patches/sajson-for-gemmi-numbers-as-strings.patch: Adjust 
patch.
    
    Change-Id: I260e964023b61876833c82ca3c59adf3b9a77b15
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 .../patches/sajson-for-gemmi-numbers-as-strings.patch      | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/patches/sajson-for-gemmi-numbers-as-strings.patch 
b/gnu/packages/patches/sajson-for-gemmi-numbers-as-strings.patch
index 6f476b8583..796df7dc44 100644
--- a/gnu/packages/patches/sajson-for-gemmi-numbers-as-strings.patch
+++ b/gnu/packages/patches/sajson-for-gemmi-numbers-as-strings.patch
@@ -50,7 +50,19 @@ diff -ur a/include/sajson.h b/include/sajson.h
  /// Represents a JSON value.  First, call get_type() to check its type,
  /// which determines which methods are available.
  ///
-@@ -585,70 +548,10 @@
+@@ -469,9 +432,9 @@ public:
+         // at worst a table lookup.
+         switch (value_tag) {
+         case tag::integer:
+-            return TYPE_INTEGER;
++            return TYPE_STRING;
+         case tag::double_:
+-            return TYPE_DOUBLE;
++            return TYPE_STRING;
+         case tag::null:
+             return TYPE_NULL;
+         case tag::false_:
+@@ -585,70 +548,10 @@ public:
          return length;
      }
  

Reply via email to