Skip to content

Commit

Permalink
Warning fix for AppleClang
Browse files Browse the repository at this point in the history
  • Loading branch information
nawaz1991 committed Jun 15, 2024
1 parent d477ed4 commit 5d0ef81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/deserializers/base_deserializer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class BaseDeserializer
if (dec1 < 0 || dec2 < 0) {
throw DeserializationException("Invalid HEX character for '" + param_name_ + "'");
}
ret.push_back((dec1 << 4) | dec2);
ret.push_back(static_cast<char>((dec1 << 4) | dec2));
} break;

case '+':
Expand Down Expand Up @@ -187,7 +187,7 @@ class BaseDeserializer
if (dec1 < 0 || dec2 < 0) {
throw DeserializationException("Invalid HEX character for '" + param_name_ + "'");
}
ret.push_back((dec1 << 4) | dec2);
ret.push_back(static_cast<char>((dec1 << 4) | dec2));
} break;

case '+':
Expand Down
2 changes: 1 addition & 1 deletion src/deserializers/content_deserializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ std::string ContentDeserializer::Deserialize(const char* beg, const char* const
if (dec1 < 0 || dec2 < 0) {
throw DeserializationException("Invalid HEX character for '" + param_name_ + "'");
}
ret.push_back((dec1 << 4) | dec2);
ret.push_back(static_cast<char>((dec1 << 4) | dec2));
} break;

case '+':
Expand Down

0 comments on commit 5d0ef81

Please sign in to comment.