diff options
Diffstat (limited to 'instruction-init.h')
-rw-r--r-- | instruction-init.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/instruction-init.h b/instruction-init.h index 2e0e29c..c2f85ed 100644 --- a/instruction-init.h +++ b/instruction-init.h @@ -16,13 +16,13 @@ void setIT(int i, uintptr_t p, Addressing r){ } uintptr_t getITFunction(int i){ //Segmentation fault is occurring here, likely in next one too - uintptr_t* r = (IT + (sizeof(uintptr_t)*i)); - return *r; + uintptr_t r = (IT + (sizeof(uintptr_t)*i)); + return r; } Addressing getITAddressing(int i){ - Addressing* r = (IT + (sizeof(uintptr_t)*256) + (sizeof(Addressing)*i)); - return *r; + Addressing r = (IT + (sizeof(uintptr_t)*256) + (sizeof(Addressing)*i)); + return r; } |