Bug 20644 – Invalid printf deprecation for ubyte passed to "%hhu"

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-03-07T12:45:32Z
Last change time
2020-03-28T03:26:42Z
Keywords
pull
Assigned to
No Owner
Creator
moonlightsentinel

Comments

Comment #0 by moonlightsentinel — 2020-03-07T12:45:32Z
-------------------------------- import core.stdc.stdio : printf; void main() { ubyte wsize; printf("%hhu\n", wsize); } -------------------------------- Deprecation: argument cast(int) wsize for format specification "%hhu" must be byte, not int
Comment #1 by dlang-bot — 2020-03-14T19:50:34Z
@Luhrel created dlang/dmd pull request #10920 "Fix Issue 20644 - Invalid printf deprecation for ubyte passed to "%hhu"" fixing this issue: - Fix Issue 20644 - Invalid printf deprecation for ubyte passed to "%hhu" https://github.com/dlang/dmd/pull/10920
Comment #2 by dlang-bot — 2020-03-28T03:26:42Z
dlang/dmd pull request #10920 "Fix Issue 20644 - Invalid printf deprecation for ubyte passed to "%hhu"" was merged into master: - 774fe1df17271f98f773d480411c7c4f446f42eb by Luhrel: Fix Issue 20644 - Invalid printf deprecation for ubyte passed to "%hhu" https://github.com/dlang/dmd/pull/10920