c42f / tinyformat

Minimal, type safe printf replacement library for C++
537 stars 75 forks source link

Fix formatting integers with both precision and the sign flag set #12

Closed lanurmi closed 10 years ago

lanurmi commented 10 years ago

Format strings such as "%+.2d" were not properly padded with zero.

c42f commented 10 years ago

Excellent, I think this patch is spot on.

Getting printf() 100% compliant with the spec is surprisingly subtle.

c42f commented 10 years ago

Rebased & pushed onto master now.