summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-01-23 17:35:57 +0100
committerHarald Welte <laforge@gnumonks.org>2012-01-23 17:35:57 +0100
commit0bd3528871b56ab990687b3ea999a89283570a85 (patch)
tree52cfa42a11268b43febdb9d8c4ef31d38f745830 /src
parent9dda4e179a98346f1d5ef82afdca6669a24c4bf9 (diff)
osmo_util:pointcode2int(undefined) -> undefined
Diffstat (limited to 'src')
-rw-r--r--src/osmo_util.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osmo_util.erl b/src/osmo_util.erl
index 3c12952..584f9ec 100644
--- a/src/osmo_util.erl
+++ b/src/osmo_util.erl
@@ -145,6 +145,8 @@ make_prim(Subsys, GenName, SpecName, Param) ->
% parse a 3-tuple pointcode into a raw integer
pointcode2int(Int) when is_integer(Int) ->
Int;
+pointcode2int(undefined) ->
+ undefined;
pointcode2int(#pointcode{repr=Type, value=Value}) ->
pointcode2int(Type, Value);
pointcode2int({Std, Param}) ->