Skip to content

Commit

Permalink
Try again to fix the clang issues
Browse files Browse the repository at this point in the history
  • Loading branch information
peternewman committed Dec 30, 2014
1 parent 41194b2 commit 7952638
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion common/utils/StringUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ string IntToString(unsigned int i) {
}

string IntToHexString(unsigned int i, unsigned int width) {
_ToHex<unsigned int> v = _ToHex<unsigned int>(i, width, true);
_ToHex<unsigned int> v = _ToHex<unsigned int>(i,
static_cast<int>(width),
true);
ostringstream str;
str << v;
return str.str();
Expand Down
2 changes: 1 addition & 1 deletion include/ola/StringUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ std::string IntToString(unsigned int i);
template<typename T>
struct _ToHex {
public:
_ToHex(T v, unsigned int width, bool prefix)
_ToHex(T v, int width, bool prefix)
: width(width),
value(v),
prefix(prefix) {
Expand Down

0 comments on commit 7952638

Please sign in to comment.