From 174ef51bb5adb84816349825b87a489b8d6bbc39 Mon Sep 17 00:00:00 2001
From: Per Hedbor <ph@opera.com>
Date: Sun, 7 Nov 1999 05:00:38 +0100
Subject: [PATCH] string + int + string does not work for bignums

Rev: src/post_modules/GL/gen.pike:1.13
---
 src/post_modules/GL/gen.pike | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/post_modules/GL/gen.pike b/src/post_modules/GL/gen.pike
index 9c03fee078..04a5254f06 100755
--- a/src/post_modules/GL/gen.pike
+++ b/src/post_modules/GL/gen.pike
@@ -425,7 +425,8 @@ string gen()
     res += "  add_function_constant(\""+f+"\", f_"+f+",\n\t\t\t\"function("+
       prot[f]+")\", OPT_SIDE_EFFECT);\n";
   foreach(sort(indices(constants)), string co)
-    res += "  add_integer_constant(\""+co+"\", "+constants[co]+", 0);\n";
+    res += "  add_integer_constant(\""+co+"\", "+
+           (string)constants[co]+", 0);\n";
   res += "  post_init();\n";
   res += "}\n";
   return res;
-- 
GitLab