pan-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pan-users] ANN: Pan 0.130 "Hyperbolicsyllabicsesquedalymistic"


From: Rhialto
Subject: Re: [Pan-users] ANN: Pan 0.130 "Hyperbolicsyllabicsesquedalymistic"
Date: Sat, 19 May 2007 22:23:11 +0200
User-agent: Mutt/1.4.2.2i

On Sat 19 May 2007 at 11:53:44 -0500, Charles Kerr wrote:
> This release uses significantly less memory on 64-bit machines,
> loads and saves articles faster, and has the usual assortment
> of tweaks, additions, and bug fixes.

It needs this patch to compile on NetBSD 3.0.

Apparently UCHAR_MAX is unsigned int and g++ can't find any
std::min(int, unsigned int).

--- pan/data/parts.cc.dist      2007-05-13 08:40:47.000000000 +0200
+++ pan/data/parts.cc   2007-05-19 21:53:07.000000000 +0200
@@ -80,7 +80,7 @@
     register const char *k, *m;
     const StringView& key (key_mid.to_view());
 
-    const int bmax = std::min ((int)std::min (key.len, mid.len), UCHAR_MAX);
+    const int bmax = std::min ((int)std::min (key.len, mid.len), 
(int)UCHAR_MAX);
     k = &key.front();
     m = &mid.front();
     for (; b!=bmax; ++b)

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert      -- You author it, and I'll reader it.
\X/ rhialto/at/xs4all.nl        -- Cetero censeo "authored" delendum esse.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]