Skip to content

Commit

Permalink
Fixed build error in RocketCoreOSX (wrong prefix and missing cast on …
Browse files Browse the repository at this point in the history
…Max)
  • Loading branch information
lloydw committed Sep 10, 2010
1 parent 9303eee commit 19c77ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Ignore compiled python code
*.pyc
# Ignore MacOSX directory info
.DS_Store
8 changes: 4 additions & 4 deletions Build/Rocket.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -573,14 +573,14 @@
isa = PBXContainerItemProxy;
containerPortal = 0867D690FE84028FC02AAC07 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 6E8B1DDB123ABC7800C451C8 /* RocketCoreOSX */;
remoteGlobalIDString = 6E8B1DDB123ABC7800C451C8;
remoteInfo = RocketCoreOSX;
};
6E8B1F97123ACC3B00C451C8 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 0867D690FE84028FC02AAC07 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 6E8B1DDB123ABC7800C451C8 /* RocketCoreOSX */;
remoteGlobalIDString = 6E8B1DDB123ABC7800C451C8;
remoteInfo = RocketCoreOSX;
};
/* End PBXContainerItemProxy section */
Expand Down Expand Up @@ -2258,7 +2258,7 @@
GCC_MODEL_TUNING = G5;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = RocketCore_Prefix.pch;
GCC_PREFIX_HEADER = Rocket_Prefix.pch;
INSTALL_PATH = /usr/local/lib;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -2278,7 +2278,7 @@
DSTROOT = /tmp/test.dst;
GCC_MODEL_TUNING = G5;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = RocketCore_Prefix.pch;
GCC_PREFIX_HEADER = Rocket_Prefix.pch;
INSTALL_PATH = /usr/local/lib;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/BaseXMLParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ bool BaseXMLParser::PeekString(const unsigned char* string, bool consume)
bool BaseXMLParser::FillBuffer()
{
int bytes_free = buffer_size;
int bytes_remaining = Math::Max(buffer_used - (read - buffer), 0);
int bytes_remaining = Math::Max((int)(buffer_used - (read - buffer)), 0);

// If theres any data still in the buffer, shift it down, and fill it again
if (bytes_remaining > 0)
Expand Down

0 comments on commit 19c77ad

Please sign in to comment.