diff options
author | brucedawson <brucedawson@chromium.org> | 2016-01-05 15:05:48 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-05 23:07:15 +0000 |
commit | 1fc1fd5b26c69e91b6ffd0fa15e30f12e21d4221 (patch) | |
tree | 7084c58a5bb18d28ef043b35d6decab11ddf3edf /gpu/gles2_conform_support | |
parent | 0a431885ef982fd97163df2154b496c464053ed8 (diff) | |
download | chromium_src-1fc1fd5b26c69e91b6ffd0fa15e30f12e21d4221.zip chromium_src-1fc1fd5b26c69e91b6ffd0fa15e30f12e21d4221.tar.gz chromium_src-1fc1fd5b26c69e91b6ffd0fa15e30f12e21d4221.tar.bz2 |
Fix VS 2015 64-bit truncation warning
crrev.com/1509833002 introduced a VS 2015 64-bit truncation warning.
This fixes it with a cast. The warning is:
egl.cc(129): warning C4267: conversion from 'size_t' to 'int', possible loss of data
R=piman@chromium.org
BUG=440500
Review URL: https://codereview.chromium.org/1560663003
Cr-Commit-Position: refs/heads/master@{#367678}
Diffstat (limited to 'gpu/gles2_conform_support')
-rw-r--r-- | gpu/gles2_conform_support/egl/egl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu/gles2_conform_support/egl/egl.cc b/gpu/gles2_conform_support/egl/egl.cc index 3a39728..b439b1e 100644 --- a/gpu/gles2_conform_support/egl/egl.cc +++ b/gpu/gles2_conform_support/egl/egl.cc @@ -126,7 +126,7 @@ EGLAPI EGLBoolean EGLAPIENTRY eglInitialize(EGLDisplay dpy, for (size_t i = 0; i < args.size(); ++i) { argv[i] = args[i].c_str(); } - base::CommandLine::Init(args.size(), argv.get()); + base::CommandLine::Init(static_cast<int>(args.size()), argv.get()); base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); if (!command_line->HasSwitch(switches::kDisableGpuDriverBugWorkarounds)) { gpu::ApplyGpuDriverBugWorkarounds(command_line); |