summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-05-05 19:42:21 -0500
committerTristan Sloughter <t@crashfast.com>2015-05-05 19:42:21 -0500
commit275bdd6c04089353e879527e273b4a36cdff0218 (patch)
treefc1ebb1de99c453fdfecad68952c9b68dcb4a1dc
parentd8509f78424a4942bc66ffb4e29684c02f99c281 (diff)
fix integer to binary conversion for pre17 releases
-rw-r--r--src/rebar_mustache.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_mustache.erl b/src/rebar_mustache.erl
index eb82785..af8a342 100644
--- a/src/rebar_mustache.erl
+++ b/src/rebar_mustache.erl
@@ -266,7 +266,7 @@ remove_space_from_tail_impl(_, Size) ->
%% @doc Number to binary
-spec to_binary(number() | binary() | string()) -> binary() | string().
to_binary(Integer) when is_integer(Integer) ->
- integer_to_binary(Integer);
+ ec_cnv:to_binary(Integer);
to_binary(Float) when is_float(Float) ->
io_lib:format("~p", [Float]);
to_binary(X) ->