View Single Post
  #3   Spotlight this post!  
Unread 06-03-2006, 12:44
wun's Avatar
wun wun is offline
Registered User
AKA: David Wolever
#0865 (Warp7)
Team Role: Programmer
 
Join Date: Dec 2003
Rookie Year: 2001
Location: Toronto
Posts: 84
wun will become famous soon enough
Send a message via AIM to wun Send a message via MSN to wun
Re: Odd Problem With Old EDU Bot

Quote:
Originally Posted by Alan Anderson
The %d format specifier wants to see an integer. The rc_dig_in## values are being passed to printf as chars. What you're seeing is the eight char values being printed as four int values.
To fix it, cast the switch values as ints.
Ah, of course! How could I forget. Actually, I suppose I forgot because I haven't programmed one of these things in years and my brain isn't at it's peak mental capacity at 1 am. Anyway, thanks for the help.
__________________
Help Microsoft stop piracy. Use Linux!

I have three gmail invitations, message me if you want one