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: Charles Kerr
Subject: Re: [Pan-users] ANN: Pan 0.130 "Hyperbolicsyllabicsesquedalymistic"
Date: Sat, 19 May 2007 15:56:57 -0500
User-agent: Thunderbird 1.5.0.10 (X11/20070302)

Fixed in svn.  Thanks for reporting this... that's not the first time
that's been broken. :)


Rhialto wrote:
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.





reply via email to

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