Skip to content

Commit

Permalink
Added static_cast to show intent and remove C4244
Browse files Browse the repository at this point in the history
  • Loading branch information
jnm2 committed Apr 13, 2017
1 parent e1b0917 commit 4cb22f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Elevate/EnvironmentStrings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ DWORD EnvironmentStrings::CalculateSize() const
{
const auto stringSize = wcslen(current);
current += stringSize + 1;
if (stringSize == 0) return current - start;
if (stringSize == 0) return static_cast<DWORD>(current - start);
}
}

0 comments on commit 4cb22f2

Please sign in to comment.