aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kernel_compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/engine/kernel_compat.h')
-rw-r--r--engines/sci/engine/kernel_compat.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/engines/sci/engine/kernel_compat.h b/engines/sci/engine/kernel_compat.h
index a021064223..7606f8881f 100644
--- a/engines/sci/engine/kernel_compat.h
+++ b/engines/sci/engine/kernel_compat.h
@@ -55,21 +55,19 @@ if ((address) & 1) \
/* Sets a heap value if allowed */
static inline int
-getHeapInt16(unsigned char *base, int address)
-{
- if (address & 1)
- sciprintf("Warning: Unaligned read from %04x\n", (address) & 0xffff);
+getHeapInt16(unsigned char *base, int address) {
+ if (address & 1)
+ sciprintf("Warning: Unaligned read from %04x\n", (address) & 0xffff);
- return getInt16(base + address);
+ return getInt16(base + address);
}
static inline unsigned int
-getHeapUInt16(unsigned char *base, int address)
-{
- if (address & 1)
- sciprintf("Warning: Unaligned unsigned read from %04x\n", (address) & 0xffff);
+getHeapUInt16(unsigned char *base, int address) {
+ if (address & 1)
+ sciprintf("Warning: Unaligned unsigned read from %04x\n", (address) & 0xffff);
- return getUInt16(base + address);
+ return getUInt16(base + address);
}