summaryrefslogtreecommitdiff
path: root/src/win32.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-27 21:41:00 +0000
committerrubidium <rubidium@openttd.org>2008-05-27 21:41:00 +0000
commit5c5ee7eb579d0ee6655e0b81f6169dca7632ab97 (patch)
tree086ec523744482fc8374da46db2a402e4b5c5d0a /src/win32.cpp
parent49a0bd7f90f3c48f81e9ad0bcabe87a77cf36e0f (diff)
downloadopenttd-5c5ee7eb579d0ee6655e0b81f6169dca7632ab97.tar.xz
(svn r13301) -Fix [FS#1997]: resolve more MSVC 9 x64 warnings.
Diffstat (limited to 'src/win32.cpp')
-rw-r--r--src/win32.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/win32.cpp b/src/win32.cpp
index 0b20032e6..ba35b7e9c 100644
--- a/src/win32.cpp
+++ b/src/win32.cpp
@@ -1090,7 +1090,7 @@ bool InsertTextBufferClipboard(Textbuf *tb)
const char *ptr;
WChar c;
- size_t width, length;
+ uint16 width, length;
if (IsClipboardFormatAvailable(CF_UNICODETEXT)) {
OpenClipboard(NULL);
@@ -1122,7 +1122,7 @@ bool InsertTextBufferClipboard(Textbuf *tb)
for (ptr = utf8_buf; (c = Utf8Consume(&ptr)) != '\0';) {
if (!IsPrintable(c)) break;
- size_t len = Utf8CharLen(c);
+ byte len = Utf8CharLen(c);
if (tb->length + length >= tb->maxlength - len) break;
byte charwidth = GetCharacterWidth(FS_NORMAL, c);