LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 0438-compiler-list_to_integer-2-is-pure.patch of Package erlang (Project home:Ledest:erlang:20)

From 2db400da1d16ece5bba264a940e014857c6fdd3f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?John=20H=C3=B6gberg?= <john@erlang.org>
Date: Thu, 18 Oct 2018 15:41:21 +0200
Subject: [PATCH] compiler: list_to_integer/2 is pure

---
 lib/compiler/src/erl_bifs.erl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/compiler/src/erl_bifs.erl b/lib/compiler/src/erl_bifs.erl
index 71ab0e872a..ce9762899e 100644
--- a/lib/compiler/src/erl_bifs.erl
+++ b/lib/compiler/src/erl_bifs.erl
@@ -108,6 +108,7 @@ is_pure(erlang, list_to_atom, 1) -> true;
 is_pure(erlang, list_to_binary, 1) -> true;
 is_pure(erlang, list_to_float, 1) -> true;
 is_pure(erlang, list_to_integer, 1) -> true;
+is_pure(erlang, list_to_integer, 2) -> true;
 is_pure(erlang, list_to_pid, 1) -> true;
 is_pure(erlang, list_to_tuple, 1) -> true;
 is_pure(erlang, max, 2) -> true;
-- 
2.16.4