mirror of
https://github.com/mirror/tinycc.git
synced 2025-02-28 08:10:25 +08:00
Fix setting of options
now that the type of boolean options is uchar set_flag() needs an accompanying change.
This commit is contained in:
parent
1dc92f8ff8
commit
474f95dda8
2
libtcc.c
2
libtcc.c
@ -1247,7 +1247,7 @@ ST_FUNC int set_flag(TCCState *s, const FlagDef *flags, const char *name)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (p->offset) {
|
if (p->offset) {
|
||||||
*(int*)((char *)s + p->offset) =
|
*((unsigned char *)s + p->offset) =
|
||||||
p->flags & FD_INVERT ? !value : value;
|
p->flags & FD_INVERT ? !value : value;
|
||||||
if (ret)
|
if (ret)
|
||||||
return 0;
|
return 0;
|
||||||
|
2
tcc.h
2
tcc.h
@ -731,7 +731,7 @@ struct TCCState {
|
|||||||
int seg_size; /* 32. Can be 16 with i386 assembler (.code16) */
|
int seg_size; /* 32. Can be 16 with i386 assembler (.code16) */
|
||||||
#endif
|
#endif
|
||||||
#ifdef TCC_TARGET_X86_64
|
#ifdef TCC_TARGET_X86_64
|
||||||
int nosse; /* For -mno-sse support. */
|
unsigned char nosse; /* For -mno-sse support. */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* array of all loaded dlls (including those referenced by loaded dlls) */
|
/* array of all loaded dlls (including those referenced by loaded dlls) */
|
||||||
|
Loading…
Reference in New Issue
Block a user