Project

General

Profile

Bug #5514

The implementation of 'coerce' needs a review

Added by Andrei Tatarnikov over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
High
Category:
-
Target version:
Start date:
12/19/2014
Due date:
% Done:

100%

Estimated time:
Detected in build:
svn
Platform:
Published in build:
2.2.14

Description

The implementation is very simple: size is changed, extra bits are set to zero.
Sign extension is not supported, which causes bugs. Also, conversion from different data type families (e.g float to integer is not supported)/

History

#1

Updated by Alexander Kamkin over 4 years ago

  • Subject changed from [model]The implementation of 'coerce' needs a review to The implementation of 'coerce' needs a review
  • Category set to Simulator
  • Target version set to 2.1
#2

Updated by Alexander Kamkin over 4 years ago

  • Category changed from Simulator to 90
#3

Updated by Alexander Kamkin over 4 years ago

  • Target version changed from 2.1 to 2.2
#4

Updated by Andrei Tatarnikov about 4 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

See r4613 and r4638.

Implementation was reviewed:

  1. Currently, coercion is supported for INT, CARD and BOOLEAN. For all other types an exception is raised.
  2. Sign extension is done on coercion to INT (signed integer). In all other cases, zero extension is performed.

Support for other types will be implemented when we face such a need.

#5

Updated by Andrei Tatarnikov about 4 years ago

  • Status changed from Resolved to Closed
  • Published in build set to 2.2.14

Also available in: Atom PDF