[Commits] SDL: Don't use a bitfield for this.
libsdl.org revision control
commits-owner at libsdl.org
Fri Jul 22 00:10:41 PDT 2011
details: http://hg.libsdl.org/SDL/rev/44463666df04
changeset: 5578:44463666df04
user: Ryan C. Gordon <icculus at icculus.org>
date: Fri Jul 22 00:09:58 2011 -0700
description:
Don't use a bitfield for this.
It pads out to an int anyhow, but causes code bloat as the compiler tries to
mask and shift for that specific bit.
diffstat:
src/audio/SDL_sysaudio.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r ced8a6788629 -r 44463666df04 src/audio/SDL_sysaudio.h
--- a/src/audio/SDL_sysaudio.h Wed Jul 20 16:35:37 2011 -0700
+++ b/src/audio/SDL_sysaudio.h Fri Jul 22 00:09:58 2011 -0700
@@ -120,7 +120,7 @@
const char *name;
const char *desc;
int (*init) (SDL_AudioDriverImpl * impl);
- int demand_only:1; /* 1==request explicitly, or it won't be available. */
+ int demand_only; /* 1==request explicitly, or it won't be available. */
} AudioBootStrap;
#endif /* _SDL_sysaudio_h */
More information about the commits
mailing list