From 299f7b0ffced429e0ff8fc51ce301c3a7d294bbe Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 19 Jan 2007 01:02:19 +0000 Subject: * scripts/gen-as-const.awk: Add cast to long to avoid int promotion of values on 64-bit platforms which are too large. --- scripts/gen-as-const.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/gen-as-const.awk b/scripts/gen-as-const.awk index c529fa42c8..bc3c47fb73 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; } -- cgit 1.4.1