projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1776621
)
Remove unnecessary cast.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 19 May 2011 05:38:43 +0000
(07:38 +0200)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 19 May 2011 05:38:43 +0000
(07:38 +0200)
attribute.c
patch
|
blob
|
history
diff --git
a/attribute.c
b/attribute.c
index
5190ac1
..
97be026
100644
(file)
--- a/
attribute.c
+++ b/
attribute.c
@@
-284,8
+284,7
@@
static void handle_attribute_asm(const attribute_t *attribute,
if (expression->kind != EXPR_STRING_LITERAL)
errorf(&attribute->source_position,
"Invalid asm attribute expression");
- string_literal_expression_t *strexpr = (string_literal_expression_t*)expression;
- symbol_t *sym = symbol_table_insert(strexpr->value.begin);
+ symbol_t *sym = symbol_table_insert(expression->string_literal.value.begin);
entity->function.actual_name = sym;
assert (argument->next == NULL);
return;