Mercurial > sdl-ios-xcode
diff test/testatomic.c @ 3216:48a80f2a7ff2
volitile... duh, yeah the variable need to be labeled volitile
author | Bob Pendleton <bob@pendleton.com> |
---|---|
date | Thu, 09 Jul 2009 21:31:27 +0000 |
parents | 3aa519a5c676 |
children | 916f396fe65d |
line wrap: on
line diff
--- a/test/testatomic.c Tue Jul 07 14:02:57 2009 +0000 +++ b/test/testatomic.c Thu Jul 09 21:31:27 2009 +0000 @@ -23,16 +23,16 @@ main(int argc, char **argv) { - Uint8 val8 = 0; + volatile Uint8 val8 = 0; Uint8 ret8 = 0; - Uint16 val16 = 0; + volatile Uint16 val16 = 0; Uint16 ret16 = 0; - Uint32 val32 = 0; + volatile Uint32 val32 = 0; Uint32 ret32 = 0; - Uint64 val64 = 0; + volatile Uint64 val64 = 0; Uint64 ret64 = 0; SDL_bool tfret = SDL_FALSE;