Fixed unconst() types.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3696 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
Meep-Eep
2011-10-01 14:15:35 +00:00
parent 094c7d6e15
commit e37fd2c51f
3 changed files with 5 additions and 4 deletions
+1
View File
@@ -1,4 +1,5 @@
Changes towards version 0.8: Changes towards version 0.8:
- Fixed unconst(), from Scott A. Colcord
- Fixes to a few small bugs in UIO which shouldn't have had an impact on - Fixes to a few small bugs in UIO which shouldn't have had an impact on
UQM, but would in the future, from Alex UQM, but would in the future, from Alex
- Allow F6 as a default alternate search key, from related projects. - Allow F6 as a default alternate search key, from related projects.
+2 -2
View File
@@ -51,8 +51,8 @@ static inline void explode (void)
static inline void * static inline void *
unconst(const void *arg) { unconst(const void *arg) {
union { union {
char *c; void *c;
const char *cc; const void *cc;
} u; } u;
u.cc = arg; u.cc = arg;
return u.c; return u.c;
+2 -2
View File
@@ -44,8 +44,8 @@ char *dosToUnixPath(const char *path);
static inline void * static inline void *
unconst(const void *arg) { unconst(const void *arg) {
union { union {
char *c; void *c;
const char *cc; const void *cc;
} u; } u;
u.cc = arg; u.cc = arg;
return u.c; return u.c;