# HG changeset patch # User Mario de Sousa # Date 1339593690 -3600 # Node ID 76bad71998960c18ce470c0abe4f0daac4faf418 # Parent 649667749171d512dea91b3f47dd59dd9407ffe6 extract_int64() must not handle negation operation (was doing it incorrectly for INT64_MIN!) diff -r 649667749171 -r 76bad7199896 absyntax_utils/absyntax_utils.cc --- a/absyntax_utils/absyntax_utils.cc Wed Jun 13 14:07:41 2012 +0100 +++ b/absyntax_utils/absyntax_utils.cc Wed Jun 13 14:21:30 2012 +0100 @@ -126,11 +126,7 @@ char *endptr; int64_t ret; - if ((neg_integer = dynamic_cast(sym)) != NULL) - return - extract_int64_value(neg_integer->exp, overflow); - if ((integer = dynamic_cast(sym)) == NULL) ERROR; - for(unsigned int i = 0; i < strlen(integer->value); i++) if (integer->value[i] != '_') str += integer->value[i]; @@ -152,7 +148,6 @@ uint64_t ret; if ((integer = dynamic_cast(sym)) == NULL) ERROR; - for(unsigned int i = 0; i < strlen(integer->value); i++) if (integer->value[i] != '_') str += integer->value[i];