we write family and style as an uint32, so we should read it as an uint32 too

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14906 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2005-11-13 21:54:41 +00:00
parent 22671ef7cf
commit d2718b5d34

View File

@ -136,7 +136,7 @@ DrawState::ReadFontFromLink(BPrivate::LinkReceiver& link)
if (mask & B_FONT_FAMILY_AND_STYLE) {
uint32 fontID;
link.Read<int32>((int32*)&fontID);
link.Read<uint32>(&fontID);
fFont.SetFamilyAndStyle(fontID);
}