Commit c4a2639f authored by Lyude Paul's avatar Lyude Paul

Use size_t for disasm functions

u32 is a nono for this
parent 1ee5cec6
......@@ -1205,7 +1205,7 @@ void DumpClause(uint32_t *words, unsigned *size)
}
}
void DisassembleBifrost(uint8_t* instBlob, uint32_t size)
void DisassembleBifrost(uint8_t* instBlob, size_t size)
{
uint32_t *words = (uint32_t *) instBlob;
uint32_t *wordsEnd = words + (size / 4);
......
......@@ -895,7 +895,7 @@ static void print_texture_word(uint32_t* word, unsigned tabs)
printf("// (!) unknown7 = %d\n", texture->unknown7);
}
void DisassembleMidgard(uint8_t* code, uint32_t size)
void DisassembleMidgard(uint8_t* code, size_t size)
{
uint32_t* words = (uint32_t *) code;
unsigned num_words = size / 4;
......
#pragma once
#include <stdint.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
void DisassembleBifrost(uint8_t* instBlob, uint32_t size);
void DisassembleMidgard(uint8_t* instBlob, uint32_t size);
void DisassembleBifrost(uint8_t* instBlob, size_t size);
void DisassembleMidgard(uint8_t* instBlob, size_t size);
#ifdef __cplusplus
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment