| Index: base/values.cc
|
| diff --git a/base/values.cc b/base/values.cc
|
| index 9f2816ae655954b51cb2ba9a285fd167f63bd799..0f30e379eb3301d915c0b06d1c78066fa993f10f 100644
|
| --- a/base/values.cc
|
| +++ b/base/values.cc
|
| @@ -179,7 +179,9 @@ bool FundamentalValue::GetAsInteger(int* out_value) const {
|
| bool FundamentalValue::GetAsDouble(double* out_value) const {
|
| if (out_value && IsType(TYPE_DOUBLE))
|
| *out_value = double_value_;
|
| - return (IsType(TYPE_DOUBLE));
|
| + else if (out_value && IsType(TYPE_INTEGER))
|
| + *out_value = integer_value_;
|
| + return (IsType(TYPE_DOUBLE) || IsType(TYPE_INTEGER));
|
| }
|
|
|
| FundamentalValue* FundamentalValue::DeepCopy() const {
|
|
|