Fixed looking up uint32 values.
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@455 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
committed by
Alexandre Deckner
parent
f7530134b1
commit
a8d1c85daa
@@ -363,10 +363,10 @@ SettingsMessage::GetValue(const char* name, int32 defaultValue) const
|
|||||||
uint32
|
uint32
|
||||||
SettingsMessage::GetValue(const char* name, uint32 defaultValue) const
|
SettingsMessage::GetValue(const char* name, uint32 defaultValue) const
|
||||||
{
|
{
|
||||||
int32 value;
|
uint32 value;
|
||||||
if (FindInt32(name, &value) != B_OK)
|
if (FindUInt32(name, &value) != B_OK)
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
return (uint32)value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user