mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-28 06:12:53 -06:00
Core: Minor fix of Value::GetOther *
This commit is contained in:
parent
a01c1a30f4
commit
a159fdc805
1 changed files with 3 additions and 3 deletions
|
|
@ -194,7 +194,7 @@ int Value::GetOtherInt() const
|
|||
if(IsNull()) return Null;
|
||||
return data.IsSpecial(BOOL_V) ? (int)GetSmall<bool>() :
|
||||
data.IsSpecial(INT64_V) ? (int)GetSmall<int64>() :
|
||||
data.IsSpecial(FLOAT_V) ? (float)GetSmall<float>() :
|
||||
data.IsSpecial(FLOAT_V) ? (int)GetSmall<float>() :
|
||||
(int)GetSmall<double>();
|
||||
}
|
||||
|
||||
|
|
@ -203,7 +203,7 @@ int64 Value::GetOtherInt64() const
|
|||
if(IsNull()) return Null;
|
||||
return data.IsSpecial(BOOL_V) ? (int64)GetSmall<bool>() :
|
||||
data.IsSpecial(INT_V) ? (int64)GetSmall<int>() :
|
||||
data.IsSpecial(FLOAT_V) ? (float)GetSmall<float>() :
|
||||
data.IsSpecial(FLOAT_V) ? (int64)GetSmall<float>() :
|
||||
(int64)GetSmall<double>();
|
||||
}
|
||||
|
||||
|
|
@ -212,7 +212,7 @@ double Value::GetOtherDouble() const
|
|||
if(IsNull()) return Null;
|
||||
return data.IsSpecial(BOOL_V) ? (double)GetSmall<bool>() :
|
||||
data.IsSpecial(INT_V) ? (double)GetSmall<int>() :
|
||||
data.IsSpecial(FLOAT_V) ? (float)GetSmall<float>() :
|
||||
data.IsSpecial(FLOAT_V) ? (double)GetSmall<float>() :
|
||||
(double)GetSmall<int64>();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue