www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20644] New: Invalid printf deprecation for ubyte passed to

https://issues.dlang.org/show_bug.cgi?id=20644

          Issue ID: 20644
           Summary: Invalid printf deprecation for ubyte passed to "%hhu"
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: moonlightsentinel disroot.org

--------------------------------
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

--
Mar 07 2020