From 9684cf346efe1ae33fd0b560b1cae5d11c5fc4b4 Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Mon, 13 Aug 2012 20:56:15 +0000 Subject: [PATCH] fix integer parsing error.. thanks dejan for the report. this indicates that we have a problem with our Integer class though; it appears to behave differently for GMP and CLN --- src/options/options_template.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options/options_template.cpp b/src/options/options_template.cpp index a3fc91c95..97a588414 100644 --- a/src/options/options_template.cpp +++ b/src/options/options_template.cpp @@ -75,7 +75,7 @@ template struct OptionHandler { static T handle(std::string option, std::string optarg) { try { - Integer i(optarg, 0); + Integer i(optarg, 10); if(! std::numeric_limits::is_signed && i < 0) { // unsigned type but user gave negative argument -- 2.30.2