Hello everyone,

Recently installed FPC 2.5.1 (from SVN) on my virtual machine, Linux Mandriva 
Spring 2010 ..

When I tried to compile my project, I received a compiler error at line 1941 of 
Unit SynaSer.pas

    SerialCheck(fpioctl(fhandle, TCFLSH, TCIOFLUSH));

synaser.pas (1941.51) Error: Incompatible types: got "ShortInt" expected 
"Pointer"

After  study some examples of use of the function "fpioctl," on FPC sources, 
(more specifically the Unit termiosproc.pas), I conclude that the  best way to 
correct the error would be using typecast, therefore:

    SerialCheck(fpioctl(fhandle, TCFLSH, pointer(TCIOFLUSH)));

Could someone please confirm if this modification is correct, and if it will 
works on FPC 2.4.0 ..

And if it's all ok, please Lukas, commit on SVN
 []s Daniel

Conheça o Projeto ACBr - Automaçao Comercial Brasil
DJSystem a Loja Patrocinadora do ACBr


      
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to