summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-07-27 17:47:34 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-07-27 17:47:34 (GMT)
commit7230a01f1a111b84538bd81f7b7e83e5a969f686 (patch)
tree30733f5374e77162234af6cb15efd7f4d527c8bf /ext
parent667dae05c735e770364b2685525d7be5b5f398df (diff)
downloadmxe-7230a01f1a111b84538bd81f7b7e83e5a969f686.zip
mxe-7230a01f1a111b84538bd81f7b7e83e5a969f686.tar.gz
mxe-7230a01f1a111b84538bd81f7b7e83e5a969f686.tar.bz2
Update GMSL
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'ext')
-rw-r--r--ext/__gmsl5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/__gmsl b/ext/__gmsl
index b2a6016..22e56dc 100644
--- a/ext/__gmsl
+++ b/ext/__gmsl
@@ -42,7 +42,7 @@
# This is the GNU Make Standard Library version number as a list with
# three items: major, minor, revision
-gmsl_version := 1 1 5
+gmsl_version := 1 1 6
__gmsl_name := GNU Make Standard Library
@@ -515,7 +515,8 @@ int_decode = $(__gmsl_tr1)$(words $1)
# Returns: Returns the integer encoded as a string of x's
# ----------------------------------------------------------------------------
__int_encode = $(if $1,$(if $(call seq,$(words $(wordlist 1,$1,$2)),$1),$(wordlist 1,$1,$2),$(call __int_encode,$1,$(if $2,$2 $2,x))))
-int_encode = $(__gmsl_tr1)$(call __int_encode,$1)
+__strip_leading_zero = $(if $1,$(if $(call seq,$(patsubst 0%,%,$1),$1),$1,$(call __strip_leading_zero,$(patsubst 0%,%,$1))),0)
+int_encode = $(__gmsl_tr1)$(call __int_encode,$(call __strip_leading_zero,$1))
# The arithmetic library functions come in two forms: one form of each
# function takes integers as arguments and the other form takes the