Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: ppapi/cpp/var.cc

Issue 4310002: Make PPAPI headers compile with C compilers (gcc on Linux & Mac and MSVS on W... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/cpp/module.cc ('k') | ppapi/examples/2d/graphics_2d_example.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/var.cc
===================================================================
--- ppapi/cpp/var.cc (revision 65116)
+++ ppapi/cpp/var.cc (working copy)
@@ -10,6 +10,7 @@
#include "ppapi/c/pp_var.h"
#include "ppapi/c/dev/ppb_var_deprecated.h"
+#include "ppapi/cpp/common.h"
#include "ppapi/cpp/logging.h"
#include "ppapi/cpp/module.h"
#include "ppapi/cpp/module_impl.h"
@@ -50,7 +51,7 @@
Var::Var(bool b) {
var_.type = PP_VARTYPE_BOOL;
- var_.value.as_bool = b;
+ var_.value.as_bool = BoolToPPBool(b);
needs_release_ = false;
}
@@ -166,7 +167,7 @@
PP_NOTREACHED();
return false;
}
- return var_.value.as_bool;
+ return PPBoolToBool(var_.value.as_bool);
}
int32_t Var::AsInt() const {
« no previous file with comments | « ppapi/cpp/module.cc ('k') | ppapi/examples/2d/graphics_2d_example.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698