void
memory_write8(enum mem_id_t id, unsigned long address, u_int8_t value)
{
- if (address >= mem_infos[id].max_size) {
+ if (address >= (unsigned long) mem_infos[id].max_size) {
printf("Error writing to memory ID: %d\n", id);
printf(" Address (%lu) greater than maximum memory size\n",
address);
u_int8_t
memory_read8(enum mem_id_t id, unsigned long address)
{
- if (address >= mem_infos[id].max_size) {
+ if (address >= (unsigned long) mem_infos[id].max_size) {
printf("Error reading from memory ID: %d\n", id);
printf(" Address (%lu) greater than maximum memory size\n",
address);