summaryrefslogtreecommitdiff
path: root/lang/erlang14
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2003-08-31 14:39:34 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2003-08-31 14:39:34 +0000
commit2107c1b7488e9714d51f03c1de8eeb5295cadd91 (patch)
tree8e582cb346ba05ce3281e5161b0f86ad21a676c1 /lang/erlang14
parentUnbreak: fix linker issue when building .so modules. (diff)
The ei_decode_longlong function fails when decoding long values >
2^32, due to a missing cast. Obtained from: Javier París Fernández <paris@dc.fi.udc.es> on erlang-questions
Notes
Notes: svn path=/head/; revision=88201
Diffstat (limited to 'lang/erlang14')
-rw-r--r--lang/erlang14/Makefile1
-rw-r--r--lang/erlang14/files/patch-lib_erl__interface_src_decode_decode__longlong.c14
2 files changed, 15 insertions, 0 deletions
diff --git a/lang/erlang14/Makefile b/lang/erlang14/Makefile
index ca6510a7cfa1..4ea0f020c448 100644
--- a/lang/erlang14/Makefile
+++ b/lang/erlang14/Makefile
@@ -7,6 +7,7 @@
PORTNAME= erlang
PORTVERSION= r9c0
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= lang
MASTER_SITES= ftp://ftp.erlang.org/pub/download/ \
diff --git a/lang/erlang14/files/patch-lib_erl__interface_src_decode_decode__longlong.c b/lang/erlang14/files/patch-lib_erl__interface_src_decode_decode__longlong.c
new file mode 100644
index 000000000000..ce5e84161b1d
--- /dev/null
+++ b/lang/erlang14/files/patch-lib_erl__interface_src_decode_decode__longlong.c
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- lib/erl_interface/src/decode/decode_longlong.c.orig Sun Aug 31 14:00:44 2003
++++ lib/erl_interface/src/decode/decode_longlong.c Sun Aug 31 14:01:41 2003
+@@ -51,7 +51,7 @@
+ int pos, shift = 0;
+ n = 0;
+ for (pos = 0; pos < arity; pos++) {
+- n |= get8(s) << shift;
++ n |= ((EI_LONGLONG) get8(s)) << shift;
+ shift += 8;
+ }
+ }