Missing parenthesis on register address equates

Post Reply
Dwedit
Posts: 43
Joined: Sun Jan 06, 2008 4:06 am

Missing parenthesis on register address equates

Post by Dwedit » Tue May 26, 2009 2:43 pm

I was just noticing that gba_timers.h formats them like this:

Code: Select all

#define REG_TM0CNT		*(vu32*)(REG_BASE + 0x100)
when it should be like this:

Code: Select all

#define REG_TM0CNT		(*(vu32*)(REG_BASE + 0x100))

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests