diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-07-21 08:56:16 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-07-21 08:56:16 +0000 |
| commit | 6574e44f886740273676b6d73ef754385a36197f (patch) | |
| tree | c13b2c6f1bb178bc5adae67f47549ea6a86d7ec4 /src/Option.cc | |
| parent | cd6b6e359135f88afffbaa31c126489aa9813571 (diff) | |
2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Converted int's to in32_t. long long int's are also converted to
int64_t
Diffstat (limited to 'src/Option.cc')
| -rw-r--r-- | src/Option.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Option.cc b/src/Option.cc index b8758af1..67ecb047 100644 --- a/src/Option.cc +++ b/src/Option.cc @@ -56,16 +56,16 @@ string Option::get(const string& name) const { } } -int Option::getAsInt(const string& name) const { +int32_t Option::getAsInt(const string& name) const { string value = get(name); if(value == "") { return 0; } else { - return (int)strtol(value.c_str(), NULL, 10); + return strtol(value.c_str(), NULL, 10); } } -long long int Option::getAsLLInt(const string& name) const { +int64_t Option::getAsLLInt(const string& name) const { string value = get(name); if(value == "") { return 0; |
