[go: up one dir, main page]

Skip to content

Commit

Permalink
Merge pull request JustasMasiulis#5 from aleks-s/master
Browse files Browse the repository at this point in the history
fixed xor_string::get
  • Loading branch information
JustasMasiulis authored Sep 25, 2018
2 parents 504550a + e496c27 commit 950c7ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/xorstr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,11 @@ namespace jm {

XORSTR_FORCEINLINE void crypt() noexcept { _crypt<0>(); }

XORSTR_FORCEINLINE const_pointer get() const noexcept { return _storage; }
XORSTR_FORCEINLINE const_pointer get() const noexcept
{
// C casts are used because buffer may or may not be volatile
return (const_pointer)(_storage);
}

XORSTR_FORCEINLINE const_pointer crypt_get() noexcept
{
Expand Down

0 comments on commit 950c7ea

Please sign in to comment.