<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hello</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>I think i've found a problem with respect to big integers
(int64,qword types).</FONT></DIV>
<DIV><FONT size=2>Please look at the following testprogram and tell me if
there's a patch. I'm using fpc version 1.0.4 on Win32.</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT size=2>program Bugtest(input,output);</FONT></DIV>
<DIV><FONT size=2>var<BR> big : int64;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>function intpower(b,p : longint) : int64;<BR>var i :
longint;<BR>begin<BR> intpower:=1;<BR> for i:=1 to p do
intpower:=b*intpower;<BR>end;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>begin { main }<BR> big := 4294967296;
{ =2^32 }<BR> writeln(' 2^32=',big);<BR> writeln('
2^32=',intpower(2,32));<BR>end.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>This program gives the following output: </FONT></DIV>
<DIV> </DIV>
<DIV><FONT
size=2>2^32=0 <BR>2^32=4294967296
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>Apparently something has gone wrong putting<BR>the value 2^32
into 'big' <BR></FONT></DIV>
<DIV><FONT size=2>Please help me!</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Greetings Jan Feitsma</DIV></FONT></BODY></HTML>