Fixed compiler warnings
This commit is contained in:
parent
95483268cf
commit
f8de826888
@ -187,7 +187,7 @@ namespace GUIEngine
|
|||||||
int m_max_label_width;
|
int m_max_label_width;
|
||||||
|
|
||||||
/** Max length of a label, in characters */
|
/** Max length of a label, in characters */
|
||||||
int m_max_label_length;
|
unsigned int m_max_label_length;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@ -218,7 +218,7 @@ void ConnectToServer::asynchronousUpdate()
|
|||||||
} // while insufficient buffer
|
} // while insufficient buffer
|
||||||
for(unsigned int i=0; i<table->dwNumEntries; i++)
|
for(unsigned int i=0; i<table->dwNumEntries; i++)
|
||||||
{
|
{
|
||||||
int ip = ntohl(table->table[i].dwAddr);
|
unsigned int ip = ntohl(table->table[i].dwAddr);
|
||||||
if(sender.ip == ip) // this interface is ours
|
if(sender.ip == ip) // this interface is ours
|
||||||
{
|
{
|
||||||
sender.ip = 0x7f000001; // 127.0.0.1
|
sender.ip = 0x7f000001; // 127.0.0.1
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
|
# undef _WIN32_WINNT
|
||||||
# define _WIN32_WINNT 0x501
|
# define _WIN32_WINNT 0x501
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -310,7 +310,7 @@ namespace StringUtils
|
|||||||
for(int i=(int)dirs.size()-1; i>=0; i--)
|
for(int i=(int)dirs.size()-1; i>=0; i--)
|
||||||
{
|
{
|
||||||
if(dirs[i].size()>1) continue;
|
if(dirs[i].size()>1) continue;
|
||||||
if(i==dirs.size()-1) // last element
|
if(i==(int)dirs.size()-1) // last element
|
||||||
{
|
{
|
||||||
dirs[i]+=":"; // turn "c" back into "c:"
|
dirs[i]+=":"; // turn "c" back into "c:"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user