Use a byte literal ASCII 0 instead of its decimal value.

This commit is contained in:
Simon Sapin 2017-08-29 16:48:37 +02:00 committed by David Tolnay
parent b460ecbdc4
commit d954ca8451
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ macro_rules! impl_Integer {
// decode last 1 or 2 chars
if n < 10 {
curr -= 1;
*buf_ptr.offset(curr) = (n as u8) + 48;
*buf_ptr.offset(curr) = (n as u8) + b'0';
} else {
let d1 = n << 1;
curr -= 2;