diff options
Diffstat (limited to 'src/intel/compiler/brw_vec4.cpp')
-rw-r--r-- | src/intel/compiler/brw_vec4.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/compiler/brw_vec4.cpp b/src/intel/compiler/brw_vec4.cpp index e0d6476dea6..4e242e03032 100644 --- a/src/intel/compiler/brw_vec4.cpp +++ b/src/intel/compiler/brw_vec4.cpp @@ -41,7 +41,7 @@ namespace brw { void src_reg::init() { - memset(this, 0, sizeof(*this)); + memset((void*)this, 0, sizeof(*this)); this->file = BAD_FILE; this->type = BRW_REGISTER_TYPE_UD; } @@ -83,7 +83,7 @@ src_reg::src_reg(const dst_reg ®) : void dst_reg::init() { - memset(this, 0, sizeof(*this)); + memset((void*)this, 0, sizeof(*this)); this->file = BAD_FILE; this->type = BRW_REGISTER_TYPE_UD; this->writemask = WRITEMASK_XYZW; |