diff options
author | Morgan Deters <mdeters@gmail.com> | 2012-08-13 20:56:15 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2012-08-13 20:56:15 +0000 |
commit | 9684cf346efe1ae33fd0b560b1cae5d11c5fc4b4 (patch) | |
tree | f43a9271f2a21fa591759d4f872867cc4dbfcbc9 /src | |
parent | 690eed77a7883869a6f45c6db8546f0ccb795b4b (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/options/options_template.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 <class T> struct OptionHandler<T, true, true> { static T handle(std::string option, std::string optarg) { try { - Integer i(optarg, 0); + Integer i(optarg, 10); if(! std::numeric_limits<T>::is_signed && i < 0) { // unsigned type but user gave negative argument |