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:
@@ -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
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user