1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-03 00:35:40 +00:00

fix GfxRGB_hash

This commit is contained in:
Lu Wang 2013-01-24 22:44:08 +08:00
parent 8d09a25baf
commit e1989652fa

View File

@ -77,7 +77,10 @@ class GfxRGB_hash
public:
size_t operator () (const GfxRGB & rgb) const
{
return (colToByte(rgb.r) << 16) | (colToByte(rgb.g) << 8) | (colToByte(rgb.b));
return ( (((size_t)colToByte(rgb.r)) << 16)
| (((size_t)colToByte(rgb.g)) << 8)
| ((size_t)colToByte(rgb.b))
);
}
};