mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-157 fix byte->string bug
X-SVN-Rev: 214
This commit is contained in:
parent
ce5fdbbb6c
commit
09693a44ef
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