mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 12:40:02 +00:00
fix byte->string bug
X-Trac-URL: https://ssl.icu-project.org/trac/ticket/157 git-svn-id: http://source.icu-project.org/repos/icu/icu/trunk@214 0a8b766c-62c9-45f9-954d-7f2943c9ead0
This commit is contained in:
parent
d201169cd2
commit
41d9389e2b
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ write8(FileStream *out, uint8_t byte) {
|
|||
s[i++]='0'+byte/100;
|
||||
byte%=100;
|
||||
}
|
||||
if(byte>=10) {
|
||||
if(i>0 || byte>=10) {
|
||||
s[i++]='0'+byte/10;
|
||||
byte%=10;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue