diff options
author | mezz <mezz@FreeBSD.org> | 2007-04-23 04:41:03 +0800 |
---|---|---|
committer | mezz <mezz@FreeBSD.org> | 2007-04-23 04:41:03 +0800 |
commit | 58a1aef5a3e914f24d69c52435cbd327d406959a (patch) | |
tree | f979dea5bcaf7f7a813b5890be4318dbc95fea00 /news/pan | |
parent | 4ed2718a8db99c0a78b86ded544a1827ccd23320 (diff) | |
download | freebsd-ports-graphics-58a1aef5a3e914f24d69c52435cbd327d406959a.tar.gz freebsd-ports-graphics-58a1aef5a3e914f24d69c52435cbd327d406959a.tar.zst freebsd-ports-graphics-58a1aef5a3e914f24d69c52435cbd327d406959a.zip |
Fix the build/runtime on amd64.
Submitted by: pav
Diffstat (limited to 'news/pan')
-rw-r--r-- | news/pan/files/patch-pan_data_article.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/news/pan/files/patch-pan_data_article.cc b/news/pan/files/patch-pan_data_article.cc new file mode 100644 index 00000000000..c461c7d93f2 --- /dev/null +++ b/news/pan/files/patch-pan_data_article.cc @@ -0,0 +1,11 @@ +--- pan/data/article.cc.orig Sun Apr 22 15:17:04 2007 ++++ pan/data/article.cc Sun Apr 22 15:17:44 2007 +@@ -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 ((char)b, (char)(minlen - UCHAR_MAX)); + while (kc>ke) + if (*kc-- != *mc--) { ++kc; break; } + const size_t e (&key.back() - kc); |