summaryrefslogtreecommitdiff
path: root/assembler/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'assembler/main.c')
-rw-r--r--assembler/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/assembler/main.c b/assembler/main.c
index 2d39d4536..77cc98b80 100644
--- a/assembler/main.c
+++ b/assembler/main.c
@@ -397,7 +397,7 @@ int main(int argc, char **argv)
if (entry1 && is_label(entry1) && is_entry_point(entry1)) {
// insert NOP instructions until (inst_offset+1) % 4 == 0
while (((inst_offset+1) % 4) != 0) {
- tmp_entry = calloc(sizeof(*tmp_entry), 1);
+ tmp_entry = calloc(1, sizeof(*tmp_entry));
tmp_entry->insn.gen.header.opcode = BRW_OPCODE_NOP;
entry->next = tmp_entry;
tmp_entry->next = entry1;