diff options
author | pdox@google.com <pdox@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-28 08:50:43 +0000 |
---|---|---|
committer | pdox@google.com <pdox@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-28 08:50:43 +0000 |
commit | bb4c9f2e6c2a3c8266448983a3ccffd6fd1b7a18 (patch) | |
tree | c60cac16cc2e73f2e02467a32aa956421c52e95f /ppapi | |
parent | 5fe4c12b22ef8d5d3cd9c1ea8cde881703faabd8 (diff) | |
download | chromium_src-bb4c9f2e6c2a3c8266448983a3ccffd6fd1b7a18.zip chromium_src-bb4c9f2e6c2a3c8266448983a3ccffd6fd1b7a18.tar.gz chromium_src-bb4c9f2e6c2a3c8266448983a3ccffd6fd1b7a18.tar.bz2 |
This implicit cast (int32_t to bool) causes an error in the NaCl Clang build.
Make the cast explicit.
Review URL: http://codereview.chromium.org/9121032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119601 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r-- | ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_font_rpc_server.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_font_rpc_server.cc b/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_font_rpc_server.cc index 69010aee..dffff7f 100644 --- a/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_font_rpc_server.cc +++ b/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_font_rpc_server.cc @@ -142,7 +142,8 @@ void PpbFontRpcServer::PPB_Font_DrawTextAt( reinterpret_cast<struct PP_Point*>(position); struct PP_Rect* pp_clip = reinterpret_cast<struct PP_Rect*>(clip); - PP_Bool pp_image_data_is_opaque = PP_FromBool(image_data_is_opaque); + PP_Bool pp_image_data_is_opaque = + PP_FromBool(image_data_is_opaque ? true : false); PP_Bool pp_success = PPBFontInterface()->DrawTextAt(font, image_data, pp_text_run, |