fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / glm / Wsign-compare.patch.0
blobef97121ff97f0c4fcd1c0952227e8532f215a77b
1 --- glm/gtx/bit.inl
2 +++ glm/gtx/bit.inl
3 @@ -576,7 +576,7 @@
4                 assert(ToBit <= sizeof(genIUType) * std::size_t(8));\r
5  \r
6                 genIUType Result = Value;\r
7 -               for(std::size_t i = 0; i <= ToBit; ++i)\r
8 +               for(int i = 0; i <= ToBit; ++i)\r
9                         Result |= (1 << i);\r
10                 return Result;\r
11         }\r
12 @@ -593,7 +593,7 @@
13                 assert(ToBit <= sizeof(genIUType) * std::size_t(8));\r
14  \r
15                 genIUType Result = Value;\r
16 -               for(std::size_t i = 0; i <= ToBit; ++i)\r
17 +               for(int i = 0; i <= ToBit; ++i)\r
18                         Result &= ~(1 << i);\r
19                 return Result;\r
20         }\r