ICU-157 fix byte->string bug

X-SVN-Rev: 214
This commit is contained in:
Markus Scherer 1999-11-22 19:35:39 +00:00
parent ce5fdbbb6c
commit 09693a44ef

View file

@ -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;
}