mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Remove unnecessary const_cast
This commit is contained in:
parent
1493cc59ce
commit
37318f915b
@ -120,8 +120,7 @@ string sha256(const string& input)
|
||||
|
||||
SHA256 ctx = SHA256();
|
||||
ctx.init();
|
||||
ctx.update(const_cast<unsigned char*>
|
||||
(reinterpret_cast<const unsigned char*>(input.c_str())), input.length());
|
||||
ctx.update(reinterpret_cast<const unsigned char*>(input.c_str()), input.length());
|
||||
ctx.final(digest);
|
||||
|
||||
char buf[2*SHA256::DIGEST_SIZE+1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user