X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=blobdiff_plain;f=src%2Fintel%2Fcompiler%2Fbrw_eu.cpp;h=51ae8cdc2210a9883baab279a838dc8595c872d3;hp=0a886b27ae2126bdfed1ecc9e11ab47595d49b25;hb=87fa645b9438ce7943ae09012f695a7a1bca3eeb;hpb=c601e730b298c5bdd34bc4335f203d46c5cdf9b3;ds=inline diff --git a/src/intel/compiler/brw_eu.cpp b/src/intel/compiler/brw_eu.cpp index 0a886b27ae2..51ae8cdc221 100644 --- a/src/intel/compiler/brw_eu.cpp +++ b/src/intel/compiler/brw_eu.cpp @@ -394,7 +394,7 @@ bool brw_try_override_assembly(struct brw_codegen *p, int start_offset, p->store = (brw_inst *)reralloc_size(p->mem_ctx, p->store, p->next_insn_offset); assert(p->store); - ssize_t ret = read(fd, p->store + start_offset, sb.st_size); + ssize_t ret = read(fd, (char *)p->store + start_offset, sb.st_size); close(fd); if (ret != sb.st_size) { return false;