1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 04:29:09 +00:00

(svn r13008) -Fix [FS#1997]: silence some MSVC x64 warnings

This commit is contained in:
glx
2008-05-08 13:20:54 +00:00
parent f7b6a02b1e
commit e48a351f8e
11 changed files with 64 additions and 65 deletions

View File

@@ -1778,7 +1778,7 @@ static void ChatTabCompletion(Window *w)
{
static char _chat_tab_completion_buf[lengthof(_edit_str_net_buf)];
Textbuf *tb = &WP(w, chatquerystr_d).text;
uint len, tb_len;
size_t len, tb_len;
uint item;
char *tb_buf, *pre_buf;
const char *cur_name;
@@ -1799,8 +1799,8 @@ static void ChatTabCompletion(Window *w)
/* We are pressing TAB again on the same name, is there an other name
* that starts with this? */
if (!second_scan) {
uint offset;
uint length;
size_t offset;
size_t length;
/* If we are completing at the begin of the line, skip the ': ' we added */
if (tb_buf == pre_buf) {

View File

@@ -205,7 +205,7 @@ DEF_UDP_RECEIVE_COMMAND(Server, PACKET_UDP_CLIENT_GET_NEWGRFS)
const GRFConfig *in_reply[NETWORK_MAX_GRF_COUNT];
uint8 in_reply_count = 0;
uint packet_len = 0;
size_t packet_len = 0;
DEBUG(net, 6, "[udp] newgrf data request from %s:%d", inet_ntoa(client_addr->sin_addr), ntohs(client_addr->sin_port));