There are some corner cases where this does not work properly:
Case 1 (multiplication):
- struct pos *points = (struct pos *) glMapBufferRange( GL_SHADER_STORAGE_BUFFER, 0, NUM_PARTICLES * sizeof(struct pos), bufMask );
+ struct pos *points = (struct pos *) glMapBufferRange( GL_SHADER_STORAGE_BUFFER, 0, NUM_PARTICLES *sizeof(struct pos), bufMask );
Case 2 (bitwise AND):
- if (nFeatureInfo & nIds)
+ if (nFeatureInfo &nIds)
Case 3 (finds only one occurrence)
- friend std::istream& operator>>(std::istream& is, icmp_header& header)
+ friend std::istream& operator>>(std::istream& is, icmp_header &header)
Case 4 (comments):
/** Construction from existing values for mantissa, sign
- * and exponent. No validation is performed.
+ *and exponent. No validation is performed.
* @note The exponent is unsigned and biased by #BIAS
*/