pan-users
[Top][All Lists]
Advanced

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

Re: [Pan-users] ANN: Pan 0.128 "SR/CL: Leitmotiv: Toynbee Idea"


From: Charles Kerr
Subject: Re: [Pan-users] ANN: Pan 0.128 "SR/CL: Leitmotiv: Toynbee Idea"
Date: Sat, 21 Apr 2007 16:59:35 -0500
User-agent: Thunderbird 1.5.0.10 (X11/20070302)

Rhialto wrote:
On Sat 21 Apr 2007 at 12:00:08 -0500, Charles Kerr wrote:
This is another incremental release -- bugfixes, some speedups,
a little more polish, and one of the better release titles in awhile. ;)

Unfortunately it fails to build, complaining about function "max()":
This may be because I'm building on an amd64 (LP64) machine.

I'm building on an amd64 as well.

Give this a shot:

Index: pan/data/article.cc
===================================================================
--- pan/data/article.cc (revision 241)
+++ pan/data/article.cc (working copy)
@@ -153,7 +153,7 @@

   kc = &key.back();
   mc = &mid.back();
-  ke = key.str + 1 + std::max (int(b), (int)minlen - UCHAR_MAX);
+  ke = key.str + 1 + std::max (int(b), (int)minlen - (int)UCHAR_MAX);
   while (kc>ke)
     if (*kc-- != *mc--) { ++kc; break; }
   const size_t e (&key.back() - kc);




reply via email to

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