Some fixes
This commit is contained in:
parent
d0587ef3ab
commit
322c1c1b4c
|
@ -528,7 +528,15 @@ lexwarning(W_ORDINARY, "character constant out of range");
|
||||||
CheckForLet();
|
CheckForLet();
|
||||||
return tk->tk_symb = INTEGER;
|
return tk->tk_symb = INTEGER;
|
||||||
}
|
}
|
||||||
if (ch == 'D' && base == 10) {
|
if (options['l']) {
|
||||||
|
if (base != 10) {
|
||||||
|
LoadChar(ch);
|
||||||
|
if (ch != 'D') {
|
||||||
|
PushBack();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (ch == 'D' && (options['l'] || base == 10)) {
|
||||||
if (options['l']) {
|
if (options['l']) {
|
||||||
/* Local extension: LONGCARD exists,
|
/* Local extension: LONGCARD exists,
|
||||||
so internally also longintorcard_type
|
so internally also longintorcard_type
|
||||||
|
|
|
@ -60,7 +60,7 @@ CodeString(nd)
|
||||||
{
|
{
|
||||||
if (nd->nd_type->tp_fund != T_STRING) {
|
if (nd->nd_type->tp_fund != T_STRING) {
|
||||||
/* Character constant */
|
/* Character constant */
|
||||||
C_loc(nd->nd_INT);
|
CodeConst(nd->nd_INT, nd->nd_type->tp_size);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
C_df_dlb(++data_label);
|
C_df_dlb(++data_label);
|
||||||
|
|
Loading…
Reference in a new issue