Fixed recent regression in Far::PatchParam

Fixed an incorrect type cast in Far::PatchParam
which could result in truncated FaceId values.
This commit is contained in:
David G Yu 2016-10-19 11:57:08 -07:00
parent f36e63a806
commit 675db39cd1

View File

@ -227,7 +227,7 @@ private:
}
unsigned int unpack(unsigned int value, int width, int offset) const {
return (unsigned short)((value >> offset) & ((1<<width)-1));
return (unsigned int)((value >> offset) & ((1<<width)-1));
}
};