696f20f0f6
* gnu/packages/patches/gemmi-fix-pegtl-usage.patch: New file. * gnu/packages/patches/gemmi-fix-sajson-types.patch: New file. * gnu/local.mk (dist_patch_DATA): Register them here. * gnu/packages/chemistry.scm (gemmi): New variable. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
12 lines
350 B
Diff
12 lines
350 B
Diff
diff -ur a/include/gemmi/json.hpp b/include/gemmi/json.hpp
|
|
--- a/include/gemmi/json.hpp
|
|
+++ b/include/gemmi/json.hpp
|
|
@@ -38,6 +38,7 @@
|
|
|
|
inline std::string as_cif_value(const sajson::value& val) {
|
|
switch (val.get_type()) {
|
|
+ case sajson::TYPE_INTEGER:
|
|
case sajson::TYPE_DOUBLE:
|
|
return val.as_string();
|
|
case sajson::TYPE_NULL:
|