Hi All, When I tried to compile my project on Lazarus 0.9.31 / FPC 2.5.1 , 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 using 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)));
I Attached a patch with this small change...
[]s Daniel
Conheça o Projeto ACBr - Automaçao Comercial Brasil
DJSystem a Loja Patrocinadora do ACBr
synaser.patch
Description: Binary data
------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
