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:
+2
-2
@@ -51,8 +51,8 @@ static inline void explode (void)
|
||||
static inline void *
|
||||
unconst(const void *arg) {
|
||||
union {
|
||||
char *c;
|
||||
const char *cc;
|
||||
void *c;
|
||||
const void *cc;
|
||||
} u;
|
||||
u.cc = arg;
|
||||
return u.c;
|
||||
|
||||
@@ -44,8 +44,8 @@ char *dosToUnixPath(const char *path);
|
||||
static inline void *
|
||||
unconst(const void *arg) {
|
||||
union {
|
||||
char *c;
|
||||
const char *cc;
|
||||
void *c;
|
||||
const void *cc;
|
||||
} u;
|
||||
u.cc = arg;
|
||||
return u.c;
|
||||
|
||||
Reference in New Issue
Block a user