flintlib / arb

Arb has been merged into FLINT -- use https://github.com/flintlib/flint/ instead
http://arblib.org/
GNU Lesser General Public License v2.1
455 stars 137 forks source link

size specifier for integers in unit test format strings #345

Closed p15-git-acc closed 3 years ago

p15-git-acc commented 3 years ago

I see that "%wd" is often used, but I don't think that's a real thing even though it seems to work for me. I guess the idea is that it's a 'wide decimal' but I think it should be changed to "%ld". According to Microsoft docs w can be used as a size modifier for characters and strings but it doesn't show it being used for integers. According to cplusplus.com docs w is not a valid length sub-specifier for any specifier character.

fredrik-johansson commented 3 years ago

This a custom format code used by flint_printf.

p15-git-acc commented 3 years ago

Thanks!