Re: [fpc-pascal] Incompatible types: got "Extended" expected "SmallInt"

2009-03-26 Thread David Emerson
because the '/' operator does not return an integer. Use div if you want an integer result. Cheers, David. On Thu 26 Mar 2009, Joseph Montanez wrote: > Im not sure why its giving me this error, as its pointing right at the > plus signs > > G3DPrimatives.pas(34,43) Error: Incompatible types: got

[fpc-pascal] Incompatible types: got "Extended" expected "SmallInt"

2009-03-26 Thread Joseph Montanez
Im not sure why its giving me this error, as its pointing right at the plus signs G3DPrimatives.pas(34,43) Error: Incompatible types: got "Extended" expected "SmallInt" G3DPrimatives.pas(36,43) Error: Incompatible types: got "Extended" expected "SmallInt" 2 : Index := Y * Surface^.pitch / 2