Sign in Join

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

Mailing lists / fpc-pascal / 2000-12

Trouble with type conversion FPC 1.03

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Dirk Verwiebe

Hello,

since the 8.12.2000 i have some trouble with the compiler from the fixes branch(1.03).DOS Go32V2.

The snaphots from 07.12.2000 are o.k.

I get warning and error messages like that:
gxhw_s3.pp(697,37) Hint: Mixing signed expressions and cardinals results
in a (slower) 64bit evaluation
gxhw_s3.pp(697,18) Error: Illegal type conversion
gxhw_s3.pp(713,47) Hint: Mixing signed expressions and cardinals results
in a (slower) 64bit evaluation
gxhw_s3.pp(713,19) Error: Illegal type conversion
TYPE PPattern=^TPattern;
     TPattern=array[0..7] of byte;
VGABase,LFBBase:dword;
x,y:longint;
p:dword;
bytperpix : word;
pattern:ppattern;
Line
697: byte(pointer(LFBbase+p+x*bytperpix)^):=(pattern^[y] SHR x) AND 1;
713: byte(pointer(VGAbase+((dword(p)+x*bytperpix) AND
$FFFF))^):=(pattern^[y] SHR x) AND 1;

gxhw_s3.pp is a unit from Michael Knapp´s Graphix library.

regards

Dirk Verwiebe

Jonas Maebe
Show quoted text 12 lines
ince the 8.12.2000 i have some trouble with the compiler from the fixes branch(1.03).DOS Go32V2. The snaphots from 07.12.2000 are o.k. I get warning and error messages like that: gxhw_s3.pp(697,37) Hint: Mixing signed expressions and cardinals results in a (slower) 64bit evaluation gxhw_s3.pp(697,18) Error: Illegal type conversion gxhw_s3.pp(713,47) Hint: Mixing signed expressions and cardinals results in a (slower) 64bit evaluation gxhw_s3.pp(713,19) Error: Illegal type conversion

Fixed.

Jonas

Mattias Gaertner
to Dirk Verwiebe: since the 8.12.2000 i have some trouble with the compiler from the fixes branch(1.03).DOS…

Hi,

I can't get any useful results from TObject.MethodAddress and TObject.MethodName.
I did it the same way as seen many times in the fcl. For example: MethodVaue:=GetMethodProp(Instance, PropInfo);
Result:=FLookupRoot.MethodName(MethodValue.Code);
MethodValue.Code is set if I set the property else not set. So, GetMethodProp seems to work. I tested TWriter and it gots the same results - all methods in properties are unknown.
I copied the code of TObject.MethodAddress and got the whole class hierachy, but all Methodtables were nil.

What am I doing wrong?

thx in advance,
Mattias