mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 22:31:36 +00:00
Fix unary minus on vector
This commit is contained in:
parent
1900262df4
commit
73c4015046
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
DROPBOX := dropbox_uploader.sh
|
||||
UNAME := $(shell uname -m)
|
||||
DOWNLOAD:= ../doc/html/download.c
|
||||
BRANCH := $(shell git branch | sed -n -e 's/^\* \(.*\)/\1/p')
|
||||
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
|
||||
ifneq ($(shell uname -m), x86_64)
|
||||
$(error Cannot build packages without an x86_64 capable CPU)
|
||||
endif
|
||||
|
|
2
ir.c
2
ir.c
|
@ -1892,7 +1892,7 @@ ir_value* ir_block_create_unary(ir_block *self, lex_ctx_t ctx,
|
|||
case VINSTR_NEG_F:
|
||||
return ir_block_create_general_instr(self, ctx, label, INSTR_SUB_F, NULL, operand, ot);
|
||||
case VINSTR_NEG_V:
|
||||
return ir_block_create_general_instr(self, ctx, label, INSTR_SUB_V, NULL, operand, ot);
|
||||
return ir_block_create_general_instr(self, ctx, label, INSTR_SUB_V, NULL, operand, TYPE_VECTOR);
|
||||
|
||||
default:
|
||||
ot = operand->vtype;
|
||||
|
|
Loading…
Reference in a new issue