Khronos Public Bugzilla
Bug 1948 - <stencil_mask> should be unsigned so 32-bit int works with the C++ standard library.
Summary: <stencil_mask> should be unsigned so 32-bit int works with the C++ standard l...
Status: NEW
Alias: None
Product: COLLADA
Classification: Unclassified
Component: Schema (show other bugs)
Version: 1.4.1
Hardware: PC Windows
: P3 normal
Target Milestone: ---
Assignee: COLLADA Work Group email alias
QA Contact: COLLADA Work Group email alias
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-12 07:53 PDT by Mick P.
Modified: 2017-04-12 07:53 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mick P. 2017-04-12 07:53:03 PDT
The XML type of <stencil_mask> is xs:long which is 64-bit. But programs are likely to use 32-bit values internally. In that case the <iostream> library cannot extract its default value: 0xFFFFFFFF (4294967295.)

For example, to get istream to extract the default value the receiving data type must be cast to the equivalent unsigned type. That works only because the conversion rules differ.