Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2000-12

Bugreport for Snapshot FPC 1.1 15.12.2000 and before

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dirk Verwiebe

Hello,

i got an error at compiling for that line:

b:=byte(ptr(seg(fontbufptr^),ofs(fontbufptr^)+ord(s[i])*16+u)^);
var
b,u:longint;
fontbufptr:pointer;
s:string;
gxtext.pp(246,39) Error: Incompatible type for arg no. 1: Got "Boolean",

expected "Longint"

The line works with snapshot 1.03 15.12.2000

regards

Dirk Verwiebe

Peter Vreman
Show quoted text 21 lines
Hello, i got an error at compiling for that line: b:=byte(ptr(seg(fontbufptr^),ofs(fontbufptr^)+ord(s[i])*16+u)^); var b,u:longint; fontbufptr:pointer; s:string; gxtext.pp(246,39) Error: Incompatible type for arg no. 1: Got "Boolean", expected "Longint" The line works with snapshot 1.03 15.12.2000

Thanks for the report, it was a stupid copy&paste bug :(

Note that in 1.1 the ptr() function returns a farpointer instead of pointer.