Skip to content

Commit

Permalink
Fix SoftUART putchar() return value; Should not be sign extended.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelpatel committed Aug 31, 2014
1 parent 634ac3f commit d26d0d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/cosa/Cosa/Soft/SOFT_UAT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ UAT::putchar(char c)
data >>= 1;
} while (--bits);
}
return (c);
return (c & 0xff);
}

bool
Expand Down

0 comments on commit d26d0d4

Please sign in to comment.