Skip to content

Commit

Permalink
Fix arm builds (#462)
Browse files Browse the repository at this point in the history
* Fix arm builds

Signed-off-by: Nate Koenig <[email protected]>

* Adding in pre-release 5.2.1

Signed-off-by: Nate Koenig <[email protected]>

Signed-off-by: Nate Koenig <[email protected]>
Co-authored-by: Nate Koenig <[email protected]>
  • Loading branch information
nkoenig and Nate Koenig authored Oct 18, 2022
1 parent 5c74a63 commit b3313c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
#============================================================================
# Initialize the project
#============================================================================
project(gz-common5 VERSION 5.2.0)
project(gz-common5 VERSION 5.2.1)
set(GZ_COMMON_VER ${PROJECT_VERSION_MAJOR})

#============================================================================
Expand All @@ -18,7 +18,7 @@ set(GZ_CMAKE_VER ${gz-cmake3_VERSION_MAJOR})
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

gz_configure_project(VERSION_SUFFIX)
gz_configure_project(VERSION_SUFFIX pre1)

#============================================================================
# Set project-specific options
Expand Down
8 changes: 5 additions & 3 deletions io/src/CSVStreams.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ std::istream &ExtractCSVToken(
char character;
if (_stream.peek(), !_stream.fail() && _stream.eof())
{
_token = {CSVToken::TERMINATOR, EOF};
_token = {CSVToken::TERMINATOR, static_cast<char>(EOF)};
}
else if (_stream.get(character))
{
Expand Down Expand Up @@ -121,7 +121,8 @@ std::istream &ParseCSVRow(
state = FIELD_START;
break;
case CSVToken::TERMINATOR:
if (token.character != EOF || !_row.empty() || text.tellp() > 0)
if (token.character != static_cast<char>(EOF) || !_row.empty() ||
text.tellp() > 0)
{
_row.push_back(text.str());
state = RECORD_END;
Expand All @@ -140,7 +141,8 @@ std::istream &ParseCSVRow(
state = FIELD_END;
break;
}
if (token.type != CSVToken::TERMINATOR || token.character != EOF)
if (token.type != CSVToken::TERMINATOR ||
token.character != static_cast<char>(EOF))
{
text << token.character;
break;
Expand Down

0 comments on commit b3313c2

Please sign in to comment.