mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
fix GfxRGB_hash
This commit is contained in:
parent
8d09a25baf
commit
e1989652fa
@ -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))
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user