summaryrefslogtreecommitdiff
path: root/src/gfx.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-10-19 18:47:15 +0000
committerrubidium <rubidium@openttd.org>2008-10-19 18:47:15 +0000
commit321e40115ddc4fe30785ad0e7fd84c5caf0dda2e (patch)
tree6a17f0ab5e4c731c33c6e459c0e828c6f9d2509b /src/gfx.cpp
parent56e5972790900885df6ce9572e4ea6ec79969393 (diff)
downloadopenttd-321e40115ddc4fe30785ad0e7fd84c5caf0dda2e.tar.xz
(svn r14494) -Fix: few MSVC x64 warnings.
Diffstat (limited to 'src/gfx.cpp')
-rw-r--r--src/gfx.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp
index ffe9e2387..ead6e5e3a 100644
--- a/src/gfx.cpp
+++ b/src/gfx.cpp
@@ -288,12 +288,12 @@ static void HandleBiDiAndArabicShapes(char *buffer, const char *lastof)
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;