Skip to content
  • Nick Mathewson's avatar
    Use %f with printf-style formatting, not %lf · 393e4fb5
    Nick Mathewson authored
    For printf, %f and %lf are synonymous, since floats are promoted to
    doubles when passed as varargs.  It's only for scanf that we need to
    say "%lf" for doubles and "%f" for floats.
    
    Apparenly, some older compilers think it's naughty to say %lf and like
    to spew warnings about it.
    
    Found by grarpamp.
    393e4fb5