mirror of
https://github.com/rui314/chibicc
synced 2024-11-22 06:11:18 +03:00
Add "long double" as an alias for "double"
This commit is contained in:
parent
ffea4219b1
commit
9bf96124ba
1
parse.c
1
parse.c
@ -528,6 +528,7 @@ static Type *declspec(Token **rest, Token *tok, VarAttr *attr) {
|
||||
ty = ty_float;
|
||||
break;
|
||||
case DOUBLE:
|
||||
case LONG + DOUBLE:
|
||||
ty = ty_double;
|
||||
break;
|
||||
default:
|
||||
|
@ -96,6 +96,8 @@ int main() {
|
||||
ASSERT(4, sizeof(1f/2));
|
||||
ASSERT(8, sizeof(1.0/2));
|
||||
|
||||
ASSERT(8, sizeof(long double));
|
||||
|
||||
printf("OK\n");
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user