Revert "Master"

This commit is contained in:
alisdair sullivan 2015-08-04 10:18:06 -07:00
parent 0bba0df858
commit 400d046746
6 changed files with 16 additions and 39 deletions

View file

@ -1010,7 +1010,8 @@ finish_number(Rest, Handler, Acc, Stack, Config) ->
-ifndef(no_binary_to_whatever).
format_number({integer, Acc}) -> {integer, binary_to_integer(Acc)};
format_number({float, Acc}) -> {float, binary_to_float(Acc)}.
-else.
-endif.
-ifdef(no_binary_to_whatever).
format_number({integer, Acc}) -> {integer, list_to_integer(unicode:characters_to_list(Acc))};
format_number({float, Acc}) -> {float, list_to_float(unicode:characters_to_list(Acc))}.
-endif.