diff options
author | hans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-14 16:56:19 +0000 |
---|---|---|
committer | hans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-14 16:56:19 +0000 |
commit | 3b14f8ad4169775545395a17214d7091e7acf503 (patch) | |
tree | 30bc8ff5d37dfc58a5b7a471e31c520840cf4881 /webkit/glue/webview_unittest.cc | |
parent | 4fe042fe3682218e390de37034adfc31b3829fca (diff) | |
download | chromium_src-3b14f8ad4169775545395a17214d7091e7acf503.zip chromium_src-3b14f8ad4169775545395a17214d7091e7acf503.tar.gz chromium_src-3b14f8ad4169775545395a17214d7091e7acf503.tar.bz2 |
render_view_browsertest.cc: Cast wchar_t to int for snprintf.
To print the character code, we should cast the wchar_t to an int.
The code currently happens to work because we don't compile with -fshort-wchars,
and thus wchar_t is four bytes, which coincides with what %d in the
snprintf format string expects. However, it's not portable, and Clang
complains about this.
BUG=none
TEST=browser_tests --gtest_filter=RenderViewTest.OnHandleKeyboardEvent
Review URL: http://codereview.chromium.org/5755005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69145 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webview_unittest.cc')
0 files changed, 0 insertions, 0 deletions