Descriptionrender_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
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69145
Patch Set 1 #
Messages
Total messages: 3 (0 generated)
|