# HG changeset patch # User Andreas Lochbihler # Date 1369917455 -7200 # Node ID 13171b27eacaa7ba4a6e30c26b8d6b6d695b3167 # Parent ee8e3eaad24c64bb0327e0ce546eb0d45786aa32 space between minus sign and number for large negative number literals causes NumberFormatException at run-time diff -r ee8e3eaad24c -r 13171b27eaca src/Tools/Code/code_scala.ML --- a/src/Tools/Code/code_scala.ML Thu May 30 08:27:51 2013 +0200 +++ b/src/Tools/Code/code_scala.ML Thu May 30 14:37:35 2013 +0200 @@ -392,7 +392,7 @@ in if k < 32 orelse k > 126 then "\\" ^ radixstring (8, "0", k) else c end fun numeral_scala k = if k < 0 then if k > ~ 2147483647 then "- " ^ string_of_int (~ k) - else quote ("- " ^ string_of_int (~ k)) + else quote ("-" ^ string_of_int (~ k)) else if k <= 2147483647 then string_of_int k else quote (string_of_int k) in Literals {