Project

General

Profile

Bug #101

conversion error from UNSIGNED to SIGNED64 if the sign bit is set ( x86-32 )

Added by Serge Durmanov 5 months ago.

Status:
New
Priority:
Normal
Category:
Win32

Description

MODULE TestConv;
VAR u16 := MAX( UNSIGNED16 )-100: UNSIGNED16; s64: SIGNED64;
PROCEDURE Do*;
BEGIN
    s64 := SIGNED64( u16 );
    TRACE( SIGNED64( u16 ), s64 );
END Do;
END TestConv.Do~
{P cpuid= 0, pid= 11944 TestConv.Do@125:SIGNED64= -4294901861; s64= -4294901861; }

Also available in: Atom PDF