<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>Consider the following program (compiled using revision 26807 on OSX):</div><div><br></div><div>=======</div><div><div>Program QWordToExtended;</div><div><br></div><div>Begin</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>WriteLn(Sizeof(Extended));</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>WriteLn(Sizeof(QWord));</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>WriteLn(Sizeof(Longword));</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>WriteLn(Extended(QWord($FFFFFFFFFFFFFFFF)));<span class="Apple-tab-span" style="white-space:pre"> </span>//1</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>WriteLn(Extended($FFFFFFFFFFFFFFFF));<span class="Apple-tab-span" style="white-space:pre"> </span>//2</div><div><span class="Apple-tab-span" style="white-space:pre"> </span></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>WriteLn(Extended(Longword($FFFFFFFF)));<span class="Apple-tab-span" style="white-space:pre"> </span>//3</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>WriteLn(Extended($FFFFFFFF));<span class="Apple-tab-span" style="white-space:pre"> </span>//4</div><div>End.</div><div>=======</div></div><div><br></div><div>Here I would expect four rather large values on standard output. The thing is that the second test gives me -1. I suspect this is due to the compiler interpreting the constant as an Int64; this is confirmed by the first test. Since I was curious as to the intended-ness of this behaviour I wrote the second set of tests which show me that this is not true for longwords: both 3 & 4 give the same result. This lead me to the conclusion that this is a bug. Shall I file it?</div><div><br></div><div>Some important note, I think: the first sizeof's of the example return 10, 8, 4 on this machine.</div><div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="font-size: medium; color: rgb(0, 0, 0); font-style: normal; ">--</div><div style="font-size: medium; color: rgb(0, 0, 0); font-style: normal; ">Ewald</div></div></span></div></span></div></div>
</div>
<br></div></body></html>