summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sotoudeh <matthew@masot.net>2023-07-30 18:31:51 -0700
committerMatthew Sotoudeh <matthew@masot.net>2023-07-30 18:31:51 -0700
commit5d1bf673872c4b23c0c77dd440a2dd692603c055 (patch)
tree03b7f33dfc36b189612e856fde92c3df9f4553b3
parent44662c62f444fc50fe523d987199f6a10c9a693c (diff)
fix name of alignof
-rw-r--r--codegen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/codegen.c b/codegen.c
index b56a8b9..e3aa08b 100644
--- a/codegen.c
+++ b/codegen.c
@@ -314,7 +314,7 @@ static void gen_expr(Node *node, int to_tmp) {
if (opt_type_builtins && (node->is_sizeof || node->is_alignof)) {
decltmp(node->ty, to_tmp);
if (node->is_sizeof) printnoln("\tt%d = sizeof ( ", to_tmp);
- else printnoln("\tt%d = alignof ( ", to_tmp);
+ else printnoln("\tt%d = _Alignof ( ", to_tmp);
print_type(node->is_sizeof);
println(" ) ;");
return;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback