some simple size_t additions and set the homepage in the ingame browser

This commit is contained in:
DarthArgus
2016-06-05 14:12:04 -07:00
parent 4e59befe09
commit a1f79e65bd
6 changed files with 8 additions and 15 deletions

View File

@@ -907,13 +907,6 @@ bool VertexSorterX ( Vector const & A, Vector const & B )
void BuildConvexHull ( VertexList const & verts, VertexList & outPoly )
{
VertexList sortedVerts = verts;
std::sort(sortedVerts.begin(),sortedVerts.end(),VertexSorterX);
int count = verts.size();
//BuildConvexHull( sortedVerts.begin(), count, outPoly );
}
// ----------------------------------------------------------------------

View File

@@ -146,7 +146,7 @@ inline char *DuplicateString(const char *source)
if (!source)
return NULL;
const uint length = strlen(source)+1;
const size_t length = strlen(source)+1;
char *result = NON_NULL (new char[length]);
memcpy(result, source, length);
return result;
@@ -171,10 +171,10 @@ inline char *DuplicateStringWithToLower(const char *source)
if (!source)
return NULL;
const uint length = strlen(source)+1;
const size_t length = strlen(source)+1;
char *result = NON_NULL (new char[length]);
for (uint i = 0; i < length; ++i)
for (size_t i = 0; i < length; ++i)
result[i] = static_cast<char>(tolower(source[i]));
return result;

View File

@@ -59,7 +59,7 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<OutDir>.\..\..\..\..\..\..\compile\win32\dpvs\Release\</OutDir>
<IntDir>.\release\</IntDir>
<IntDir>.\..\..\..\..\..\..\compile\win32\dpvs\Release\</IntDir>
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='IntelCPP|Win32'">

View File

@@ -164,11 +164,11 @@ private:
// that this must be large enough to preserve
// alignment.
static size_t _STLP_CALL __extra_before_chunk() {
return (long)__extra_before/sizeof(value_type)+
return (size_t)((long)__extra_before/sizeof(value_type))+
(size_t)((long)__extra_before%sizeof(value_type)>0);
}
static size_t _STLP_CALL __extra_after_chunk() {
return (long)__extra_after/sizeof(value_type)+
return (size_t)((long)__extra_after/sizeof(value_type))+
(size_t)((long)__extra_after%sizeof(value_type)>0);
}
public:

View File

@@ -337,7 +337,7 @@ template <class _CharT, class _Traits, class _Alloc> __size_type__
basic_string<_CharT,_Traits,_Alloc> ::find(const _CharT* __s, size_type __pos, size_type __n) const
{
if (__pos + __n > size())
return npos;
return (size_t) npos;
else {
const const_pointer __result =
_STLP_STD::search((const _CharT*)this->_M_start + __pos, (const _CharT*)this->_M_finish,

View File

@@ -36,7 +36,7 @@
namespace browserNamespace
{
std::string s_homePage = "www.StarWarsGalaxies.com";
std::string s_homePage = "beta.stellabellum.net";
}
using namespace browserNamespace;