make Label offsets int
It's a bit too easy to trip up the MSRTC bots with size_t. (The only reason I used size_t in the first place is that these really are byte offsets... kind of the one place we use size_t.) Cq-Include-Trybots: skia.primary:Test-Win2016-MSVC-GCE-CPU-AVX2-x86_64-Debug-All-MSRTC Change-Id: I3426cec68af298a18139118b866b70b33ee34d9b Reviewed-on: https://skia-review.googlesource.com/c/skia/+/224182 Commit-Queue: Mike Klein <mtklein@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: Mike Klein <mtklein@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
f14badde92
commit
a8720d0c94
@ -643,7 +643,7 @@ namespace skvm {
|
||||
void Assembler::vcvttps2dq(Ymm dst, Ymm x) { this->op(0xf3,0x0f,0x5b, dst,x); }
|
||||
|
||||
Assembler::Label Assembler::here() {
|
||||
return { this->size() };
|
||||
return { (int)this->size() };
|
||||
}
|
||||
|
||||
void Assembler::op(int prefix, int map, int opcode, Ymm dst, Ymm x, Label l) {
|
||||
|
@ -84,7 +84,7 @@ namespace skvm {
|
||||
using DstEqOpX = void(Ymm dst, Ymm x);
|
||||
DstEqOpX vcvtdq2ps, vcvttps2dq;
|
||||
|
||||
struct Label { size_t offset; };
|
||||
struct Label { int offset; };
|
||||
Label here();
|
||||
|
||||
void jne(Label);
|
||||
|
Loading…
Reference in New Issue
Block a user