LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 0202-Sort-entries-and-correct-typos.patch of Package erlang (Project home:Ledest:erlang:20)

From b5ff263df0e2dd3fc7795a3e0ec41e254899ad6c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20Muska=C5=82a?= <michal@muskala.eu>
Date: Fri, 23 Feb 2018 14:41:02 +0100
Subject: [PATCH 2/2] Sort entries and correct typos

---
 lib/hipe/icode/hipe_icode_inline_bifs.erl | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/lib/hipe/icode/hipe_icode_inline_bifs.erl b/lib/hipe/icode/hipe_icode_inline_bifs.erl
index 330527b9a9..16a95991e7 100644
--- a/lib/hipe/icode/hipe_icode_inline_bifs.erl
+++ b/lib/hipe/icode/hipe_icode_inline_bifs.erl
@@ -24,9 +24,9 @@
 
 %% Currently inlined BIFs:
 %% and, or, xor, not, <, >, >=, =<, ==, /=, =/=, =:=
-%% is_atom, is_boolean, is_binary, is_bitstring, is_float,
-%% is_integer, is_number, is_function, is_list,
-%% is_pid, is_port, is_reference, is_tuple, is_map
+%% is_atom, is_binary, is_bitstring, is_boolean, is_float,
+%% is_function, is_integer, is_list, is_map, is_number,
+%% is_pid, is_port, is_reference, is_tuple
 
 -module(hipe_icode_inline_bifs).
 
@@ -117,20 +117,20 @@ try_type_tests(I) -> I.
 
 is_type_test(Name) ->
   case Name of
-    is_integer -> {true, integer};
-    is_float -> {true, float};
-    is_number -> {true, number};
-    is_tuple -> {true, tuple};
-    is_binary -> {true, binary};
-    is_bitsting -> {true, bitstr};
-    is_list -> {true, list};
-    is_pid -> {true, pid};
     is_atom -> {true, atom};
+    is_binary -> {true, binary};
+    is_bitstring -> {true, bitstr};
     is_boolean -> {true, boolean};
+    is_float -> {true, float};
     is_function -> {true, function};
-    is_reference -> {true, reference};
-    is_port -> {true, port};
+    is_integer -> {true, integer};
+    is_list -> {true, list};
     is_map -> {true, map};
+    is_number -> {true, number};
+    is_pid -> {true, pid};
+    is_port -> {true, port};
+    is_reference -> {true, reference};
+    is_tuple -> {true, tuple};
     _ -> false
   end.
  
-- 
2.16.2