W1058 Implicit string cast with potential data loss from

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
ffabian
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: 15.02.2010, 21:32

W1058 Implicit string cast with potential data loss from

Post by ffabian »

I receive the warning:

[DCC Warning] ZDbcInterbase6.pas(527): W1058 Implicit string cast with potential data loss from 'string' to 'AnsiString'

line 527
StrPCopy(DBName, HostName + '/' + IntToStr(Port) + ':' + Database)

line 529
StrPCopy(DBName, HostName + ':' + Database)

line 523
StrPCopy(DBName, Database);

Thank you
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Can you fix it? Please do so. But make sure other compilers can also handle it.
I'll be glad to try your patch here on my old compilers and integrate it in the official zeoslib code when it doesn't break anything.

Mark
Image
ffabian
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: 15.02.2010, 21:32

Post by ffabian »

I sorry, I tried :wallb: but I can not find the solution, I not a guru of Delphi

Fabian :(
Locked