View Issue Details

IDProjectCategoryView StatusLast Update
000160910000-004: Servicespublic2012-02-09 22:52
ReporterJouni Aro Assigned ToMatthias Damm  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Fixed in Version1.02 
Summary0001609: Unclear specification for ContentFilter Cast operator between signed and unsigned types
Description

The specification should clarify how the Cast_12 operator, defined in Table 113, should treat negative values, when the target data type is an unsigned type. I.e.

Cast(-1, UInt8) -> null (=error) or UInt(0xff)?

TagsNo tags attached.
Commit Version
Fix Due Date

Activities

Randy Armstrong

2011-05-10 16:13

administrator   ~0002681

Should be an error

Matthias Damm

2011-09-13 00:17

developer   ~0002943

There is nothing written yet about conversion of a negative signed value to an unsigned value.

I would also say that this conversion should result in an error (null).

But why is the conversions from Int16 -> UInt32/UInt64 and Int32 -> UInt64 implicit conversions?

Matthias Damm

2011-09-13 00:42

developer   ~0002944

Added the following sentence to the conversion rules:
"Converting a negative value to a unsigned type causes a conversion error. It the conversion fails the result is a null value."
Adde also the following clarification:
"Converting a value that is outside the range of the target type causes a conversion error."

Changed in document version OPC UA Part 4 - Services 1.02.07 Draft.doc

Randy Armstrong

2011-09-14 19:52

administrator   ~0002973

Reviewed at F2F

Issue History

Date Modified Username Field Change
2011-04-01 12:32 Jouni Aro New Issue
2011-05-10 16:13 Randy Armstrong Note Added: 0002681
2011-05-10 16:13 Randy Armstrong Status new => assigned
2011-05-10 16:13 Randy Armstrong Assigned To => Matthias Damm
2011-09-13 00:17 Matthias Damm Note Added: 0002943
2011-09-13 00:42 Matthias Damm Status assigned => resolved
2011-09-13 00:42 Matthias Damm Resolution open => fixed
2011-09-13 00:42 Matthias Damm Note Added: 0002944
2011-09-14 19:52 Randy Armstrong Status resolved => closed
2011-09-14 19:52 Randy Armstrong Note Added: 0002973
2012-02-09 22:52 Jim Luth Fixed in Version => 1.02