port to C17/C++20
This commit is contained in:
@@ -266,7 +266,7 @@ namespace hgl
|
||||
const int hash_bytes=hash_code_bytes[(size_t)ha];
|
||||
|
||||
uint8 *hash_code=new uint8[hash_bytes];
|
||||
char *hash_code_str=new char[1+(hash_bytes<<1)];
|
||||
u8char *hash_code_str=new u8char[1+(hash_bytes<<1)];
|
||||
|
||||
h->Init();
|
||||
h->Update(data,size);
|
||||
|
@@ -37,7 +37,7 @@ namespace hgl
|
||||
|
||||
public:
|
||||
|
||||
void GetName(UTF8String &str)const override{str="SHA1LE";}
|
||||
void GetName(UTF8String &str)const override{str=U8_TEXT("SHA1LE");}
|
||||
void GetName(UTF16String &str)const override{str=U16_TEXT("SHA1LE");}
|
||||
|
||||
const int GetHashBytes()const override {return DIGEST_SIZE;}
|
||||
|
Reference in New Issue
Block a user