Mercurial > vim
comparison src/gui_w48.c @ 5722:7e826028d399 v7.4.206
updated for version 7.4.206
Problem: Compiler warnings on 64 bit Windows.
Solution: Add type casts. (Mike Williams)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 19 Mar 2014 12:37:22 +0100 |
parents | 22d7af9ff3e5 |
children | 50dbef5e774a |
comparison
equal
deleted
inserted
replaced
5721:f99b6efb5193 | 5722:7e826028d399 |
---|---|
3076 /* Convert a font name from the current codepage to 'encoding'. | 3076 /* Convert a font name from the current codepage to 'encoding'. |
3077 * TODO: Use Wide APIs (including LOGFONTW) instead of ANSI APIs. */ | 3077 * TODO: Use Wide APIs (including LOGFONTW) instead of ANSI APIs. */ |
3078 if (enc_codepage >= 0 && (int)GetACP() != enc_codepage) | 3078 if (enc_codepage >= 0 && (int)GetACP() != enc_codepage) |
3079 { | 3079 { |
3080 int len; | 3080 int len; |
3081 acp_to_enc(lf.lfFaceName, strlen(lf.lfFaceName), | 3081 acp_to_enc(lf.lfFaceName, (int)strlen(lf.lfFaceName), |
3082 (char_u **)&font_name, &len); | 3082 (char_u **)&font_name, &len); |
3083 } | 3083 } |
3084 #endif | 3084 #endif |
3085 res = alloc((unsigned)(strlen(font_name) + 20 | 3085 res = alloc((unsigned)(strlen(font_name) + 20 |
3086 + (charset_name == NULL ? 0 : strlen(charset_name) + 2))); | 3086 + (charset_name == NULL ? 0 : strlen(charset_name) + 2))); |