[JAEGER] Fixed a few warnings

This commit is contained in:
David Mandelin 2010-07-26 11:54:12 -07:00
parent 8702c2649d
commit fff17561b9
2 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ class UpvarCookie
uint32 asInteger() const { return value; }
/* isFree check should be performed before using these accessors. */
uint16 level() const { JS_ASSERT(!isFree()); return value >> 16; }
uint16 slot() const { JS_ASSERT(!isFree()); return value; }
uint16 slot() const { JS_ASSERT(!isFree()); return uint16(value); }
void set(const UpvarCookie &other) { set(other.level(), other.slot()); }
void set(uint16 newLevel, uint16 newSlot) { value = (uint32(newLevel) << 16) | newSlot; }

View File

@ -64,7 +64,7 @@ struct VMFrame
/* This must be the first entry on CPUs which push return addresses. */
void *scriptedReturn;
#if defined(JS_CPU_X86) or defined(JS_CPU_X64)
#if defined(JS_CPU_X86) || defined(JS_CPU_X64)
uintptr_t padding;
#endif