Skip to content

Commit

Permalink
Fixes to compile under XCode 5.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkettering committed Mar 15, 2014
1 parent bf75328 commit 18ad198
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions MacOS/Frogatto.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1798,6 +1798,9 @@
WARNING_CFLAGS = (
"-Wno-parentheses-equality",
"-Wno-logical-op-parentheses",
"-Wno-deprecated-register",
"-Wno-redeclared-class-member",
"-Wno-constexpr-not-const",
);
WRAPPER_EXTENSION = app;
};
Expand Down Expand Up @@ -1860,6 +1863,9 @@
WARNING_CFLAGS = (
"-Wno-parentheses-equality",
"-Wno-logical-op-parentheses",
"-Wno-deprecated-register",
"-Wno-redeclared-class-member",
"-Wno-constexpr-not-const",
);
WRAPPER_EXTENSION = app;
};
Expand Down
4 changes: 2 additions & 2 deletions src/surface_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ surface get_no_cache(data_blob_ptr blob)
{
ASSERT_LOG(blob != NULL, "Invalid data_blob in surface::get_no_cache");
surface surf = surface(IMG_Load_RW(blob->get_rw_ops(), 0));
if(surf.get() == false || surf->w == 0) {
if(surf.get() == NULL || surf->w == 0) {
std::cerr << "failed to load image '" << (*blob)() << "': " << IMG_GetError() << "\n";
throw load_image_error();
}
Expand Down Expand Up @@ -131,7 +131,7 @@ surface get_no_cache(const std::string& key, std::string* full_filename)
}
#endif // ANDROID
//std::cerr << "loading image '" << fname << "'\n";
if(surf.get() == false || surf->w == 0) {
if(surf.get() == NULL || surf->w == 0) {
if(key != "") {
std::cerr << "failed to load image '" << key << "':" << IMG_GetError() << "\n";
}
Expand Down
2 changes: 1 addition & 1 deletion src/variant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ bool variant::as_bool() const
case VARIANT_TYPE_CALLABLE:
return callable_ != NULL;
case VARIANT_TYPE_LIST:
return !list_->size() == 0;
return list_->size() != 0;
case VARIANT_TYPE_MAP:
return !map_->elements.empty();
case VARIANT_TYPE_STRING:
Expand Down

0 comments on commit 18ad198

Please sign in to comment.