jsruntime\qv4arraybuffer.cpp(94) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
jsruntime\qv4persistent.cpp(53) : warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
Change-Id: I6ccef9a64ecfb53b18204b35e17421c0a5ac955b
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
e->throwRangeError(QStringLiteral("ArrayBuffer: out of memory"));
return;
}
- data->size = length;
+ data->size = int(length);
memset(data->data(), 0, length + 1);
}
int freeList;
};
-static const int kEntriesPerPage = (WTF::pageSize() - sizeof(Header)) / sizeof(Value);
+static const int kEntriesPerPage = int((WTF::pageSize() - sizeof(Header)) / sizeof(Value));
struct Page {
Header header;