Menu

#145 signed & unsigned char

closed-fixed
3
2013-06-21
2002-01-07
No

on some patforms char is default signed and on others
is unsigned.

i received a bug because somewhere (at least in
lib/transfer.c:627) char is supposed to be signed even
if it is not always true.

more info at http://bugs.debian.org/127011.

thanks

Discussion

  • Daniel Stenberg

    Daniel Stenberg - 2002-01-07
    • labels: --> compile or build problem
    • milestone: --> bad_behaviour
    • priority: 5 --> 3
    • assigned_to: nobody --> bagder
    • status: open --> closed-fixed
     
  • Daniel Stenberg

    Daniel Stenberg - 2002-01-07

    Logged In: YES
    user_id=1110

    Thanks for pointing this out.

    I've made the 'bool' typedef "unsigned char" now to avoid
    this in the future, and I corrected the silly comparison in
    lib/transfer.c (even though it is a completely different
    line number in the current code).

    I re-run the compiler with "whining" options enabled, and it
    didn't complain on any other occurrences of this mistake.

     
MongoDB Logo MongoDB