summaryrefslogtreecommitdiff
path: root/src/options/options_template.cpp
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2012-08-13 20:56:15 +0000
committerMorgan Deters <mdeters@gmail.com>2012-08-13 20:56:15 +0000
commit9684cf346efe1ae33fd0b560b1cae5d11c5fc4b4 (patch)
treef43a9271f2a21fa591759d4f872867cc4dbfcbc9 /src/options/options_template.cpp
parent690eed77a7883869a6f45c6db8546f0ccb795b4b (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/options/options_template.cpp')
-rw-r--r--src/options/options_template.cpp2
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
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback