mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix build warnings on ARM. [Bug 606949] [r=cdleary]
This commit is contained in:
parent
34336dddb8
commit
da5d6e26e4
@ -253,9 +253,9 @@ namespace JSC {
|
||||
};
|
||||
|
||||
enum {
|
||||
padForAlign8 = 0x00,
|
||||
padForAlign16 = 0x0000,
|
||||
padForAlign32 = 0xe12fff7f // 'bkpt 0xffff'
|
||||
padForAlign8 = (int)0x00,
|
||||
padForAlign16 = (int)0x0000,
|
||||
padForAlign32 = (int)0xe12fff7f // 'bkpt 0xffff'
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
@ -307,7 +307,7 @@ namespace JSC {
|
||||
}
|
||||
|
||||
int m_offset : 31;
|
||||
int m_used : 1;
|
||||
bool m_used : 1;
|
||||
};
|
||||
|
||||
// Instruction formating
|
||||
@ -1284,7 +1284,7 @@ namespace JSC {
|
||||
// Deal with special encodings.
|
||||
if ((type == LSL) && (imm == 0)) {
|
||||
// "LSL #0" doesn't shift at all (and is the default).
|
||||
sprintf(out, rm);
|
||||
sprintf(out, "%s", rm);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -221,7 +221,7 @@ public:
|
||||
void flushWithoutBarrier(bool isForced = false)
|
||||
{
|
||||
// Flush if constant pool is more than 60% full to avoid overuse of this function.
|
||||
if (isForced || 5 * m_numConsts > 3 * maxPoolSize / sizeof(uint32_t))
|
||||
if (isForced || (5 * m_numConsts * sizeof(uint32_t)) > (3 * maxPoolSize))
|
||||
flushConstantPool(false);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user