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
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