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:
stippi 2010-04-23 15:02:17 +00:00 committed by Alexandre Deckner
parent f7530134b1
commit a8d1c85daa

View File

@ -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;
}