(svn r13301) -Fix [FS#1997]: resolve more MSVC 9 x64 warnings.

This commit is contained in:
rubidium
2008-05-27 21:41:00 +00:00
parent 0682b03046
commit 33e18c236d
28 changed files with 88 additions and 83 deletions

View File

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