aboutsummaryrefslogtreecommitdiff
path: root/tccgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccgen.c')
-rw-r--r--tccgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tccgen.c b/tccgen.c
index e488c65..9e06118 100644
--- a/tccgen.c
+++ b/tccgen.c
@@ -4038,7 +4038,7 @@ static void expr_cond(void)
SValue sv;
CType type, type1, type2;
- if (const_wanted) {
+ if (const_wanted || (cur_text_section == NULL)) {
expr_lor_const();
if (tok == '?') {
CType boolean;