From 299f7b0ffced429e0ff8fc51ce301c3a7d294bbe Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 19 Jan 2007 01:02:19 +0000 Subject: [PATCH] * scripts/gen-as-const.awk: Add cast to long to avoid int promotion of values on 64-bit platforms which are too large. --- ChangeLog | 5 +++++ scripts/gen-as-const.awk | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8e33965..51d5312 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-01-18 Ulrich Drepper + + * scripts/gen-as-const.awk: Add cast to long to avoid int promotion + of values on 64-bit platforms which are too large. + 2007-01-12 Steven Munroe Joe Kerian diff --git a/scripts/gen-as-const.awk b/scripts/gen-as-const.awk index c529fa4..bc3c47f 100644 --- a/scripts/gen-as-const.awk +++ b/scripts/gen-as-const.awk @@ -38,7 +38,7 @@ NF > 1 { if (test) print " TEST (" name ", \"" FILENAME ":" FNR "\", " $0 ")"; else - printf "asm (\"@@@name@@@%s@@@value@@@%%0@@@end@@@\" : : \"i\" (%s));\n", + printf "asm (\"@@@name@@@%s@@@value@@@%%0@@@end@@@\" : : \"i\" ((long) %s));\n", name, $0; } -- 2.7.4