diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-05-30 01:49:29 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-08-07 10:08:13 -0500 |
commit | 2b75ae66033eaa344519cc6c5cde86230889be21 (patch) | |
tree | 3487bd3bd91904e4968a3be53cc58fe6d827ded0 /user/xapian-core/sortable-serialise.patch | |
parent | 9d03e34dec850c50d2593ead44ca8eed281b46a4 (diff) | |
download | packages-2b75ae66033eaa344519cc6c5cde86230889be21.tar.gz packages-2b75ae66033eaa344519cc6c5cde86230889be21.tar.bz2 packages-2b75ae66033eaa344519cc6c5cde86230889be21.tar.xz packages-2b75ae66033eaa344519cc6c5cde86230889be21.zip |
user/xapian-core: Update to 1.4.25
Finally fixed the test suite, too!
Diffstat (limited to 'user/xapian-core/sortable-serialise.patch')
-rw-r--r-- | user/xapian-core/sortable-serialise.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/user/xapian-core/sortable-serialise.patch b/user/xapian-core/sortable-serialise.patch new file mode 100644 index 000000000..d7cb9209a --- /dev/null +++ b/user/xapian-core/sortable-serialise.patch @@ -0,0 +1,15 @@ +Discussing with upstream, but for now, this does fix both the test suite +and operationally the ability to serialise +Inf values. +--- xapian-core-1.4.25/api/sortable-serialise.cc.old 2024-03-07 16:57:54.000000000 -0600 ++++ xapian-core-1.4.25/api/sortable-serialise.cc 2024-05-30 00:49:54.835053392 -0500 +@@ -55,6 +55,10 @@ + + // Negative infinity. + if (value < -DBL_MAX) return 0; ++ if (value == HUGE_VAL) { ++ memset(buf, '\xff', 9); ++ return 9; ++ } + + mantissa = frexp(value, &exponent); + |