mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 23:34:15 +00:00
(svn r23187) -Fix (r23186): MSVC allowed non-const where const was mandatory
This commit is contained in:
parent
37797164ca
commit
72b1fffe82
4
src/3rdparty/squirrel/squirrel/sqbaselib.cpp
vendored
4
src/3rdparty/squirrel/squirrel/sqbaselib.cpp
vendored
@ -485,7 +485,7 @@ static SQInteger array_resize(HSQUIRRELVM v)
|
||||
|
||||
|
||||
//QSORT ala Sedgewick
|
||||
bool _qsort_compare(HSQUIRRELVM v,SQObjectPtr &arr,SQObjectPtr &a,SQObjectPtr &b,SQInteger func,SQInteger &ret)
|
||||
bool _qsort_compare(HSQUIRRELVM v,SQObjectPtr &arr,const SQObjectPtr &a,const SQObjectPtr &b,SQInteger func,SQInteger &ret)
|
||||
{
|
||||
if(func < 0) {
|
||||
if(!v->ObjCmp(a,b,ret)) return false;
|
||||
@ -511,7 +511,7 @@ struct qsort_cmp
|
||||
{
|
||||
HSQUIRRELVM v;
|
||||
SQInteger func;
|
||||
bool operator() (SQObjectPtr &a, SQObjectPtr &b) const
|
||||
bool operator() (const SQObjectPtr &a, const SQObjectPtr &b) const
|
||||
{
|
||||
SQInteger res;
|
||||
SQObjectPtr dummy;
|
||||
|
Loading…
Reference in New Issue
Block a user