Commit 2920e331 authored by Jose Dapena Paz's avatar Jose Dapena Paz Committed by Commit Bot

IWYU: math.h required to use floor() in QR code generator

../../chrome/common/qr_code_generator/qr_code_generator.cc: In member function ‘unsigned int QRCodeGenerator::CountPenaltyPoints() const’:
../../chrome/common/qr_code_generator/qr_code_generator.cc:977:40: error: ‘floor’ was not declared in this scope
  977 |   penalty += 5 * static_cast<unsigned>(floor(deviation));
      |                                        ^~~~~

Bug: 957519
Change-Id: Ibf428161deeea35111edcbc9085459ec4966a50d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2394160
Commit-Queue: Adam Langley <agl@chromium.org>
Reviewed-by: default avatarAdam Langley <agl@chromium.org>
Cr-Commit-Position: refs/heads/master@{#804606}
parent 03ea367f
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include "chrome/common/qr_code_generator/qr_code_generator.h" #include "chrome/common/qr_code_generator/qr_code_generator.h"
#include <math.h>
#include <string.h> #include <string.h>
#include <ostream> #include <ostream>
......
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