mirror of
https://github.com/albertodemichelis/squirrel.git
synced 2026-01-11 14:08:41 +01:00
Merge pull request #228 from GaijinEntertainment/fix-temp-sqobjectptr
Fix creating unnecessary temporary object with refcount
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
|
||||
#define hashptr(p) ((SQHash)(((SQInteger)p) >> 3))
|
||||
|
||||
inline SQHash HashObj(const SQObjectPtr &key)
|
||||
inline SQHash HashObj(const SQObject &key)
|
||||
{
|
||||
switch(sq_type(key)) {
|
||||
case OT_STRING: return _string(key)->_hash;
|
||||
|
||||
Reference in New Issue
Block a user