lima/ppir: change offset type to int

Offset doesn't need to be 64-bit. This fixes compilation error
with 64-bit off_t.

Fixes: af0de6b9 lima/ppir: implement discard and discard_if

Suggested-by: Qiang Yu <yuq825@gmail.com>
Signed-off-by: Mateusz Krzak <kszaquitto@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Tested-by: Andreas Baierl <ichgeh@imkreisrum.de>
This commit is contained in:
Mateusz Krzak 2019-06-08 00:33:30 +02:00 committed by kszaq
parent 900a80f9e4
commit 60009aefdb
2 changed files with 2 additions and 2 deletions

View File

@ -677,7 +677,7 @@ static void ppir_codegen_print_prog(ppir_compiler *comp)
printf("========ppir codegen========\n");
list_for_each_entry(ppir_block, block, &comp->block_list, list) {
list_for_each_entry(ppir_instr, instr, &block->instr_list, list) {
printf("%03d (@%6ld): ", instr->index, instr->offset);
printf("%03d (@%6d): ", instr->index, instr->offset);
int n = prog[0] & 0x1f;
for (int i = 0; i < n; i++) {
if (i && i % 6 == 0)

View File

@ -297,7 +297,7 @@ typedef struct ppir_instr {
int est; /* earliest start time */
int parent_index;
bool scheduled;
off_t offset;
int offset;
} ppir_instr;
typedef struct ppir_block {