pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/zidrav sysutils/zidrav: use an unsigned long ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/43df1439a5be
branches: trunk
changeset: 385521:43df1439a5be
user: he <he%pkgsrc.org@localhost>
date: Sun Sep 18 13:49:00 2022 +0000
description:
sysutils/zidrav: use an unsigned long for crc_table[]
...for the benefit of LP32 platforms, avoiding
error: narrowing conversion of '2567524794' from 'long unsigned int'
to 'long int'
Bump PKGREVISION.
diffstat:
sysutils/zidrav/Makefile | 3 ++-
sysutils/zidrav/distinfo | 4 ++--
sysutils/zidrav/patches/patch-core.h | 14 +++++++++++++-
3 files changed, 17 insertions(+), 4 deletions(-)
diffs (52 lines):
diff -r bc5f0f5406fd -r 43df1439a5be sysutils/zidrav/Makefile
--- a/sysutils/zidrav/Makefile Sun Sep 18 13:37:18 2022 +0000
+++ b/sysutils/zidrav/Makefile Sun Sep 18 13:49:00 2022 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.7 2020/01/18 23:35:22 rillig Exp $
+# $NetBSD: Makefile,v 1.8 2022/09/18 13:49:00 he Exp $
#
DISTNAME= zidrav4unix-1.2.0
PKGNAME= zidrav-1.20
+PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=zidrav/}
diff -r bc5f0f5406fd -r 43df1439a5be sysutils/zidrav/distinfo
--- a/sysutils/zidrav/distinfo Sun Sep 18 13:37:18 2022 +0000
+++ b/sysutils/zidrav/distinfo Sun Sep 18 13:49:00 2022 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 11:20:30 nia Exp $
+$NetBSD: distinfo,v 1.6 2022/09/18 13:49:00 he Exp $
BLAKE2s (zidrav4unix-1.2.0.tar.gz) = 98e5ecb4f8f8548e6993deb468d1259753ce5496e840d54a9be877f1a648efc2
SHA512 (zidrav4unix-1.2.0.tar.gz) = f1fc2b2621e3d02bf51995241f7f95e40b58bca17132a0a296babb586c489d1667fbc2901b5dc02890f89e685ce1f4c068a950bb58e1e445d278acc234d03951
Size (zidrav4unix-1.2.0.tar.gz) = 18448 bytes
SHA1 (patch-aa) = 7e1c6bcb375d38a1aa7f3eaa4fa00e779465860a
-SHA1 (patch-core.h) = f5497f376545fe24554a3ecb7f7f12c59b30e3f9
+SHA1 (patch-core.h) = 48f815a68f24c1c531b5beff93ae4492ea4c5d8a
diff -r bc5f0f5406fd -r 43df1439a5be sysutils/zidrav/patches/patch-core.h
--- a/sysutils/zidrav/patches/patch-core.h Sun Sep 18 13:37:18 2022 +0000
+++ b/sysutils/zidrav/patches/patch-core.h Sun Sep 18 13:49:00 2022 +0000
@@ -1,4 +1,7 @@
-$NetBSD: patch-core.h,v 1.1 2011/11/22 20:04:40 joerg Exp $
+$NetBSD: patch-core.h,v 1.2 2022/09/18 13:49:00 he Exp $
+
+Include <string.h> and use an unsigned long for crc_table[]
+for the benefit of LP32 platforms.
--- core.h.orig 2011-11-22 19:25:48.000000000 +0000
+++ core.h
@@ -10,3 +13,12 @@
using namespace std;
+@@ -48,7 +49,7 @@ public:
+ #define QSV KSigver( ZQ, QVER )
+
+
+-const long crc_table[256] = { // it's just easier this way, alright? It's one K of data, I'm allowed a global if I want one
++const unsigned long crc_table[256] = { // it's just easier this way, alright? It's one K of data, I'm allowed a global if I want one
+ 0x00000000L, 0x77073096L, 0xee0e612cL, 0x990951baL, 0x076dc419L,
+ 0x706af48fL, 0xe963a535L, 0x9e6495a3L, 0x0edb8832L, 0x79dcb8a4L,
+ 0xe0d5e91eL, 0x97d2d988L, 0x09b64c2bL, 0x7eb17cbdL, 0xe7b82d07L,
Home |
Main Index |
Thread Index |
Old Index