summaryrefslogtreecommitdiffstats
path: root/third_party/npapi/bindings
diff options
context:
space:
mode:
authornfullagar@google.com <nfullagar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-19 00:24:43 +0000
committernfullagar@google.com <nfullagar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-19 00:24:43 +0000
commite6180c6062fb44fb6b9c1dcc680743aac8b48803 (patch)
tree38e18f99222247acfd7c1c60663957e3bf0e7ef1 /third_party/npapi/bindings
parent9ee682be46eb8a18a640d885520422d97d1433b9 (diff)
downloadchromium_src-e6180c6062fb44fb6b9c1dcc680743aac8b48803.zip
chromium_src-e6180c6062fb44fb6b9c1dcc680743aac8b48803.tar.gz
chromium_src-e6180c6062fb44fb6b9c1dcc680743aac8b48803.tar.bz2
fix cast so it works in c
Review URL: http://codereview.chromium.org/2068010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47602 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/npapi/bindings')
-rw-r--r--third_party/npapi/bindings/npruntime.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/npapi/bindings/npruntime.h b/third_party/npapi/bindings/npruntime.h
index 0778526..7111437 100644
--- a/third_party/npapi/bindings/npruntime.h
+++ b/third_party/npapi/bindings/npruntime.h
@@ -169,14 +169,14 @@ NP_END_MACRO
#define STRINGZ_TO_NPVARIANT(_val, _v) \
NP_BEGIN_MACRO \
(_v).type = NPVariantType_String; \
- NPString str = { _val, uint32_t(strlen(_val)) }; \
+ NPString str = { _val, (uint32_t)(strlen(_val)) }; \
(_v).value.stringValue = str; \
NP_END_MACRO
#define STRINGN_TO_NPVARIANT(_val, _len, _v) \
NP_BEGIN_MACRO \
(_v).type = NPVariantType_String; \
- NPString str = { _val, uint32_t(_len) }; \
+ NPString str = { _val, (uint32_t)(_len) }; \
(_v).value.stringValue = str; \
NP_END_MACRO