diff --git a/chapters/10-Optimizing-Branch-Prediction/10-4 Multiple Compares Single Branch.md b/chapters/10-Optimizing-Branch-Prediction/10-4 Multiple Compares Single Branch.md index 0bbab05f4..89fde2069 100644 --- a/chapters/10-Optimizing-Branch-Prediction/10-4 Multiple Compares Single Branch.md +++ b/chapters/10-Optimizing-Branch-Prediction/10-4 Multiple Compares Single Branch.md @@ -47,7 +47,7 @@ uint32_t longestLine(const std::string &str) { lineBeginPos += curLen + 1; // Is this line the longest? maxLen = std::max(curLen, maxLen); - // Shift the mask to check if we have more '\n' + // Shift the mask to check if we have more '\n'. Notice shift by 8 bits on uint8_t is UB. mask >>= eolPos + 1; } }