Add hd8122 download API.
Change-Id: Id631c2fbde1364240114e5527f85a4cf1d0987b3
diff --git a/mbtk/libmbtk_lib/src/mbtk_utf.c b/mbtk/libmbtk_lib/src/mbtk_utf.c
index 295ff1d..771186d 100755
--- a/mbtk/libmbtk_lib/src/mbtk_utf.c
+++ b/mbtk/libmbtk_lib/src/mbtk_utf.c
@@ -185,7 +185,7 @@
UTF8 *target = *targetStart;
while (source < sourceEnd) {
UTF32 ch;
- unsigned short bytesToWrite = 0;
+ unsigned int bytesToWrite = 0;
const UTF32 byteMask = 0xBF;
const UTF32 byteMark = 0x80;
const UTF16 *oldSource = source; /* In case we have to back up because of target overflow. */
@@ -489,7 +489,7 @@
UTF32 *target = *targetStart;
while (source < sourceEnd) {
UTF32 ch = 0;
- unsigned short extraBytesToRead = trailingBytesForUTF8[*source];
+ int extraBytesToRead = trailingBytesForUTF8[*source];
if (source + extraBytesToRead >= sourceEnd) {
result = sourceExhausted;
break;