#1 2021-11-22 05:25:22

sakura
Member
From: Germany
Registered: 2018-02-21
Posts: 223
Website

mORMot2 - Compiler Errors

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

#2 2021-11-22 08:26:36

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,206
Website

Re: mORMot2 - Compiler Errors

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. big_smile
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

Board footer

Powered by FluxBB