pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/nickle modify a fix (about signed integer overflo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/763c37c4ac50
branches:  trunk
changeset: 526521:763c37c4ac50
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Tue Mar 13 10:55:12 2007 +0000

description:
modify a fix (about signed integer overflow non-portability) so that
it matches the upstream version, to ease future updates
(no functional change)

diffstat:

 math/nickle/distinfo         |   4 ++--
 math/nickle/patches/patch-aa |  11 +----------
 2 files changed, 3 insertions(+), 12 deletions(-)

diffs (34 lines):

diff -r 01d7263aacba -r 763c37c4ac50 math/nickle/distinfo
--- a/math/nickle/distinfo      Tue Mar 13 10:51:42 2007 +0000
+++ b/math/nickle/distinfo      Tue Mar 13 10:55:12 2007 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2007/02/22 20:35:38 drochner Exp $
+$NetBSD: distinfo,v 1.2 2007/03/13 10:55:12 drochner Exp $
 
 SHA1 (nickle-2.56.tar.gz) = f8672a60c41d21da2fe40eb12beafb485bf14211
 RMD160 (nickle-2.56.tar.gz) = 29cb2473764d6d5f80466c1638729e30539da124
 Size (nickle-2.56.tar.gz) = 399957 bytes
-SHA1 (patch-aa) = 93a35914f28cff0fb4cbdc1e0fb19efce99c95aa
+SHA1 (patch-aa) = a28227fc17d71fbfc9a588597ee868b0f662bba2
diff -r 01d7263aacba -r 763c37c4ac50 math/nickle/patches/patch-aa
--- a/math/nickle/patches/patch-aa      Tue Mar 13 10:51:42 2007 +0000
+++ b/math/nickle/patches/patch-aa      Tue Mar 13 10:55:12 2007 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.1.1.1 2007/02/22 20:35:38 drochner Exp $
+$NetBSD: patch-aa,v 1.2 2007/03/13 10:55:12 drochner Exp $
 
 --- value.h.orig       2007-02-22 20:27:04.000000000 +0100
 +++ value.h
@@ -17,12 +17,3 @@
  /*
   * An int fits in a 'nickle int' if the top two bits
   * are the same.  There are four initial values:
-@@ -328,7 +328,7 @@ extern ValueRep    ForeignRep;
-  *
-  * So, the two 'naughty' ones end up with the high bit set
-  */
--#define NICKLE_INT_CARRIED(r) (((r) + NICKLE_INT_SIGN) & NICKLE_INT_CARRY)
-+#define NICKLE_INT_CARRIED(r) (((unsigned)(r) + NICKLE_INT_SIGN) & NICKLE_INT_CARRY)
- 
- #define MAX_NICKLE_INT            ((int) ((unsigned) NICKLE_INT_SIGN - 1))
- #define MIN_NICKLE_INT            (-MAX_NICKLE_INT - 1)



Home | Main Index | Thread Index | Old Index