Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

rev 4649 doesn't build on linux

(1/7) > >>

killerbot:
due to squirrel update ?


--- Quote ---inline SQHash HashObj(const SQObjectPtr &key)
{
   switch(type(key)) {
      case OT_STRING:      return _string(key)->_hash;
      case OT_FLOAT:      return (SQHash)((SQInteger)_float(key));
      case OT_BOOL: case OT_INTEGER:   return (SQHash)((SQInteger)_integer(key));
      default:         return hashptr(key._unVal.pRefCounted);  ///<--------------------------------------------
   }
}

--- End quote ---



--- Quote ---../../../../src/include/scripting/squirrel/sqtable.h: In function 'SQHash HashObj(const SQObjectPtr&)':
../../../../src/include/scripting/squirrel/sqtable.h:21: error: cast from 'SQRefCounted*' to 'SQInteger' loses precision
make[4]: *** [sqfuncstate.lo] Error 1

--- End quote ---

Jenna:
I just compiled it on linux without problems.

MortenMacFly:

--- Quote from: jens on November 20, 2007, 11:51:35 pm ---I just compiled it on linux without problems.

--- End quote ---
For me, too. What compiler are you using?

Edit: I just checked: sqtable.{h/cpp} was not touched at all during the update...?!

mandrav:
Sounds like a 64-bit portability issue. Killerbot: are you compiling for 64-bit?

bludo:
Hello, I have the same problem on a x86_64 too and my version of gcc is 4.1.2

Navigation

[0] Message Index

[#] Next page

Go to full version