Kaydet (Commit) 352f9fdf authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-Werror=shift-negative-value (GCC 6)

Change-Id: Ifc7b1d6675a8e8fb41dd47cc1282059c3790736f
üst 6b328acb
...@@ -78,7 +78,7 @@ public: ...@@ -78,7 +78,7 @@ public:
num_intraword_positions=sizeof(value_type)*8/bits_per_pixel, num_intraword_positions=sizeof(value_type)*8/bits_per_pixel,
/** Bit mask for one pixel (least significant bits) /** Bit mask for one pixel (least significant bits)
*/ */
bit_mask=~(~0 << bits_per_pixel) bit_mask=~(~0u << bits_per_pixel)
}; };
private: private:
...@@ -238,7 +238,7 @@ public: ...@@ -238,7 +238,7 @@ public:
num_intraword_positions=sizeof(value_type)*8/bits_per_pixel, num_intraword_positions=sizeof(value_type)*8/bits_per_pixel,
/** Bit mask for one pixel (least significant bits) /** Bit mask for one pixel (least significant bits)
*/ */
bit_mask=~(~0 << bits_per_pixel) bit_mask=~(~0u << bits_per_pixel)
}; };
private: private:
...@@ -477,7 +477,7 @@ public: ...@@ -477,7 +477,7 @@ public:
num_intraword_positions=sizeof(value_type)*8/bits_per_pixel, num_intraword_positions=sizeof(value_type)*8/bits_per_pixel,
/** Bit mask for one pixel (least significant bits) /** Bit mask for one pixel (least significant bits)
*/ */
bit_mask=~(~0 << bits_per_pixel) bit_mask=~(~0u << bits_per_pixel)
}; };
// TODO(F2): direction of iteration (ImageIterator can be made to // TODO(F2): direction of iteration (ImageIterator can be made to
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment