From 65f74da7a48294b43aadc5495b8f5070e964aa5f Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 15 Mar 2009 16:26:20 -0400 Subject: [PATCH] Portability - Fedora 9 - Using size_t as a result for std::string::find causes a silent error, reported only on Ubuntu 8. size_t is not large enough. The proper result type is std::string::size_type. This fixes a problem with the command "task old" responding with "Ambiguous commane 'old' - could be one of oldest, oldest.description, oldest.limit, oldest.sort". --- src/parse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse.cpp b/src/parse.cpp index b5adb8388..a8e41a914 100644 --- a/src/parse.cpp +++ b/src/parse.cpp @@ -497,7 +497,7 @@ void loadCustomReports (Config& conf) if (i->substr (0, 7) == "report.") { std::string report = i->substr (7, std::string::npos); - size_t columns = report.find (".columns"); + std::string::size_type columns = report.find (".columns"); if (columns != std::string::npos) { report = report.substr (0, columns);