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:
parent
f7530134b1
commit
a8d1c85daa
@ -363,10 +363,10 @@ SettingsMessage::GetValue(const char* name, int32 defaultValue) const
|
||||
uint32
|
||||
SettingsMessage::GetValue(const char* name, uint32 defaultValue) const
|
||||
{
|
||||
int32 value;
|
||||
if (FindInt32(name, &value) != B_OK)
|
||||
uint32 value;
|
||||
if (FindUInt32(name, &value) != B_OK)
|
||||
return defaultValue;
|
||||
return (uint32)value;
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user