Deprecation: argument `ul` for format specification `"%lu"` must be `int`, not `ulong`

ParticlePeter ParticlePeter at gmx.de
Tue Aug 25 08:14:23 UTC 2020


void main()  {
     import core.stdc.stdio : printf;
     ulong ul = 0;
     printf( "%lu\n", ul );
}

Tested on dmd 2.093 and 2.093.1 (noticed on later first time), 
with flag -m64.
Same message when format specifier is %u.

Is this intended behavior?




More information about the Digitalmars-d mailing list