Thread overview
[Issue 23475] Wrong printf deprecation message with ulong/long
Nov 10, 2022
kinke
Nov 13, 2022
Nick Treleaven
Nov 13, 2022
Nick Treleaven
[Issue 23475] confusing printf deprecation message with ulong/long on Windows
Nov 13, 2022
Nick Treleaven
Nov 13, 2022
kinke
Nov 14, 2022
Dlang Bot
Nov 14, 2022
Nick Treleaven
Nov 14, 2022
Nick Treleaven
Dec 17, 2022
Iain Buclaw
May 04, 2023
Dlang Bot
November 10, 2022
https://issues.dlang.org/show_bug.cgi?id=23475

kinke <kinke@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |kinke@gmx.net
         Resolution|---                         |INVALID

--- Comment #1 from kinke <kinke@gmx.net> ---
Nope - Microsoft chose 32-bit for `long` (even when targeting 64-bit Windows!). You need to use `%lld` for `long long`, which is always 64-bit for all targets I know of.

--
November 13, 2022
https://issues.dlang.org/show_bug.cgi?id=23475

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #2 from Nick Treleaven <nick@geany.org> ---
Huh? I already showed that ulong is 64 bit on my windows system.

--
November 13, 2022
https://issues.dlang.org/show_bug.cgi?id=23475

--- Comment #3 from Nick Treleaven <nick@geany.org> ---
Well I think the error message could be less confusing anyway.

--
November 13, 2022
https://issues.dlang.org/show_bug.cgi?id=23475

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Wrong printf deprecation    |confusing printf
                   |message with ulong/long     |deprecation message with
                   |                            |ulong/long on Windows

--- Comment #4 from Nick Treleaven <nick@geany.org> ---
Well I think the error message could be less confusing anyway.

--
November 13, 2022
https://issues.dlang.org/show_bug.cgi?id=23475

--- Comment #5 from kinke <kinke@gmx.net> ---
(In reply to Nick Treleaven from comment #2)
> Huh? I already showed that ulong is 64 bit on my windows system.

You're calling a C function, which couldn't care less about D well-defining long as 64-bit on all targets.

--
November 14, 2022
https://issues.dlang.org/show_bug.cgi?id=23475

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ntrel created dlang/dmd pull request #14641 "Fix Issue 23475 - confusing printf deprecation message with ulong/lon…" fixing this issue:

- Fix Issue 23475 - confusing printf deprecation message with ulong/long on Windows

https://github.com/dlang/dmd/pull/14641

--
November 14, 2022
https://issues.dlang.org/show_bug.cgi?id=23475

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
           Severity|minor                       |enhancement

--
November 14, 2022
https://issues.dlang.org/show_bug.cgi?id=23475

--- Comment #7 from Nick Treleaven <nick@geany.org> ---
(In reply to kinke from comment #5)
> You're calling a C function, which couldn't care less about D well-defining long as 64-bit on all targets.

Yes, thanks for the tip about %lld.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=23475

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
May 04, 2023
https://issues.dlang.org/show_bug.cgi?id=23475

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #14641 "Fix Issue 23475 - confusing printf deprecation message with ulong/lon…" was merged into master:

- 286bf003cc2b9a69ad5de39d319aa9383716ada6 by Nick Treleaven:
  Fix Issue 23475 - confusing printf deprecation message with ulong/long on
Windows

https://github.com/dlang/dmd/pull/14641

--