| ... | ... | @@ -468,7 +468,7 @@ static const char *decl_name(const Decl *decl) { |
| 468 | 468 | static AstNode *trans_create_node_apint(Context *c, const llvm::APSInt &aps_int) { |
| 469 | 469 | AstNode *node = trans_create_node(c, NodeTypeIntLiteral); |
| 470 | 470 | node->data.int_literal.bigint = allocate<BigInt>(1); |
| 471 | | bool is_negative = aps_int.isNegative(); |
| 471 | bool is_negative = aps_int.isSigned() && aps_int.isNegative(); |
| 472 | 472 | if (!is_negative) { |
| 473 | 473 | bigint_init_data(node->data.int_literal.bigint, aps_int.getRawData(), aps_int.getNumWords(), false); |
| 474 | 474 | return node; |