Use erlang: prefix for integer conversion
authorMatt Mullins <mmullins@mmlx.us>
Wed, 16 Jan 2013 06:01:35 +0000 (22:01 -0800)
committerMatt Mullins <mmullins@mmlx.us>
Wed, 16 Jan 2013 06:01:35 +0000 (22:01 -0800)
Apparently R14A doesn't see integer_to_list/2 and list_to_integer/2 without
the erlang: prefix.

irc/irc_amqp_listener.erl

index 0ed84a7..a5accc7 100644 (file)
@@ -66,7 +66,7 @@ encode_character(Char) ->
         Char >= $A, Char =< $Z ->
             [$C, string:to_lower(Char)];
         true ->
-            [$X] ++ integer_to_list(Char, 16)
+            [$X] ++ erlang:integer_to_list(Char, 16)
     end.
 
 %% @doc Decode a routing key, from the encoding specified for
@@ -83,7 +83,7 @@ decode_routing_key([], Acc) ->
 decode_routing_key(RoutingKey, Acc) ->
     This = case RoutingKey of
         "X" ++ [H1, H2 | Tail] ->
-            list_to_integer([H1, H2], 16);
+            erlang:list_to_integer([H1, H2], 16);
         "C" ++ [Char | Tail] ->
             string:to_upper(Char);
         [Anything | Tail] ->