(svn r14494) -Fix: few MSVC x64 warnings.
authorrubidium
Sun, 19 Oct 2008 18:47:15 +0000
changeset 10263 38cf029c7181
parent 10262 7b6cd91d5596
child 10264 308d95eddae9
(svn r14494) -Fix: few MSVC x64 warnings.
src/gfx.cpp
--- a/src/gfx.cpp	Sun Oct 19 17:30:41 2008 +0000
+++ b/src/gfx.cpp	Sun Oct 19 18:47:15 2008 +0000
@@ -288,12 +288,12 @@
 	input_output[length] = 0;
 
 	UErrorCode err = U_ZERO_ERROR;
-	UBiDi *para = ubidi_openSized(length, 0, &err);
+	UBiDi *para = ubidi_openSized((int32_t)length, 0, &err);
 	if (para == NULL) return;
 
-	ubidi_setPara(para, input_output, length, UBIDI_DEFAULT_RTL, NULL, &err);
-	ubidi_writeReordered(para, intermediate, length, 0, &err);
-	length = u_shapeArabic(intermediate, length, input_output, lengthof(input_output), U_SHAPE_TEXT_DIRECTION_VISUAL_LTR | U_SHAPE_LETTERS_SHAPE, &err);
+	ubidi_setPara(para, input_output, (int32_t)length, UBIDI_DEFAULT_RTL, NULL, &err);
+	ubidi_writeReordered(para, intermediate, (int32_t)length, 0, &err);
+	length = u_shapeArabic(intermediate, (int32_t)length, input_output, lengthof(input_output), U_SHAPE_TEXT_DIRECTION_VISUAL_LTR | U_SHAPE_LETTERS_SHAPE, &err);
 	ubidi_close(para);
 
 	if (U_FAILURE(err)) return;