[fpc-pascal] minigzip example does not compile (?)

Michael Van Canneyt michael at freepascal.org
Tue Apr 1 11:39:46 CEST 2014



On Tue, 1 Apr 2014, Juha Manninen wrote:

> On Tue, Apr 1, 2014 at 11:09 AM, Juha Manninen
> <juha.manninen62 at gmail.com> wrote:
>> Got "LongInt" expected "SmallInt"
>
> I opened the example program in Lazarus for debugging it.
> Lazarus project uses mode objfpc by default. Changing 2 variables from
> Integer to SmalInt solved the compilation problem.
> IMO the type should be corrected as debugging with Lazarus is often a good idea.

Or we add a {$mode fpc} to the sources.

Michael.


More information about the fpc-pascal mailing list