Thread: decoder issue
View Single Post
  #4   Spotlight this post!  
Unread 03-03-2006, 19:05
TubaMorg TubaMorg is offline
Programmermechanicalelect ricalcoach
AKA: Dan
FRC #1480 (Robatos Locos)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Houston
Posts: 450
TubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond repute
Re: decoder issue

Well, again I am assuming your are using the test program, try casting it as a long so that it looks like this:

Code:
PrintToScreen ( "Gear tooth count = %ld\n" , (long)geartooth ) ;
That should fix the output so that it makes since to you. I believe you are just having overflow because a long can't be stuffed into an int.