← Back to index
|
Original Bugzilla link
Bug 18952 – std.experimental.checkedint.Saturate prints integral promotion deprecation message
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-06-06T16:24:17Z
Last change time
2018-06-14T05:20:37Z
Assigned to
No Owner
Creator
Seb
Comments
Comment #0
by greensunny12 — 2018-06-06T16:24:17Z
--- /dlang/dmd/linux/bin64/../../src/phobos/std/experimental/checkedint.d(2184): Deprecation: integral promotion not done for ~cast(byte)0, use '-transition=intpromote' switch or ~cast(int)(cast(byte)0) --- --- import std.experimental.checkedint; void main() { auto x = (cast(byte) 127).checked!Saturate; assert(x == 127); x++; assert(x == 127); } ---
https://run.dlang.io/is/8QMIT5
Comment #1
by greensunny12 — 2018-06-06T16:26:22Z
PR
https://github.com/dlang/phobos/pull/6549
Comment #2
by github-bugzilla — 2018-06-14T05:20:36Z
Commits pushed to master at
https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/7a8ff39cbb0630547bfd85f939cd0207a09418b5
Fix Issue 18952 - std.experimental.checkedint.Saturate prints integral promotion deprecation message
https://github.com/dlang/phobos/commit/15b682af36d39c8ddbd889dba98b694092a7c7ea
Merge pull request #6549 from wilzbach/checked-doc Fix Issue 18952 - std.experimental.checkedint.Saturate prints integral promotion deprecation message merged-on-behalf-of: Nathan Sashihara <
[email protected]
>