You are not logged in.
Pages: 1
Hi,
in mormot.crypt.ecc, the three EccToDer methods use
SetString(result, @der, len);
- using @AnsiChar where PChar is expected resulting in [dcc32 Error] mormot.crypt.ecc.pas(1735): E2008 Incompatible types
Regards,
Daniel
Offline
You are right: yesterday evening I forgot to compile and run the tests on Delphi.
It is weird that Delphi doesn't accept @AnsiChar as PAnsiChar, anyway.
I guess the reason is that they want to be sure about the code page, and force strong typing. Make sense in the point of view of converting some existing code to UTF-16 back in Delphi 2009.
Offline
Pages: 1