Commit 4a47580a authored by Miyoung Shin's avatar Miyoung Shin Committed by Commit Bot

Change short to uint16_t in dynamic_annotations.cc

- short -> uint16_t to refer to https://codereview.chromium.org/1653973005
- Reference: https://google.github.io/styleguide/cppguide.html#Integer_Types

Bug: 929985
Change-Id: I4d3129762881a430ce2eb18bd826e89fd0017d75
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1502260Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarDarwin Huang <huangdarwin@chromium.org>
Commit-Queue: Darwin Huang <huangdarwin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#637910}
parent 1a26a9be
......@@ -24,6 +24,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdint.h>
#include "third_party/blink/renderer/platform/wtf/dynamic_annotations.h"
#if defined(WTF_USE_DYNAMIC_ANNOTATIONS) && \
......@@ -33,12 +35,12 @@
// This makes all Annotate* functions different, which prevents the linker from
// folding them.
#ifdef __COUNTER__
#define DYNAMIC_ANNOTATIONS_IMPL \
volatile short lineno = (__LINE__ << 8) + __COUNTER__; \
#define DYNAMIC_ANNOTATIONS_IMPL \
volatile uint16_t lineno = (__LINE__ << 8) + __COUNTER__; \
(void)lineno;
#else
#define DYNAMIC_ANNOTATIONS_IMPL \
volatile short lineno = (__LINE__ << 8); \
#define DYNAMIC_ANNOTATIONS_IMPL \
volatile uint16_t lineno = (__LINE__ << 8); \
(void)lineno;
#endif
......
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