From owner-svn-ports-head@FreeBSD.ORG Wed Oct 15 07:06:32 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3BCF184F; Wed, 15 Oct 2014 07:06:32 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 27F0992A; Wed, 15 Oct 2014 07:06:32 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s9F76WVV062289; Wed, 15 Oct 2014 07:06:32 GMT (envelope-from joerg@FreeBSD.org) Received: (from joerg@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s9F76VrX062287; Wed, 15 Oct 2014 07:06:31 GMT (envelope-from joerg@FreeBSD.org) Message-Id: <201410150706.s9F76VrX062287@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: joerg set sender to joerg@FreeBSD.org using -f From: Joerg Wunsch Date: Wed, 15 Oct 2014 07:06:31 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r370895 - in head/devel/as31: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2014 07:06:32 -0000 Author: joerg Date: Wed Oct 15 07:06:31 2014 New Revision: 370895 URL: https://svnweb.freebsd.org/changeset/ports/370895 QAT: https://qat.redports.org/buildarchive/r370895/ Log: Fix a bug with the location counter calculation that becomes obvious when running on 64-bit machines. Submitted by: Holm Tiffe Obtained from: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=655487 Added: head/devel/as31/files/patch-debianbug655487 (contents, props changed) Modified: head/devel/as31/Makefile Modified: head/devel/as31/Makefile ============================================================================== --- head/devel/as31/Makefile Wed Oct 15 02:14:21 2014 (r370894) +++ head/devel/as31/Makefile Wed Oct 15 07:06:31 2014 (r370895) @@ -3,7 +3,7 @@ PORTNAME= as31 PORTVERSION= 2.0.b3 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= devel MASTER_SITES= http://www.pjrc.com/tech/8051/tools/ DISTNAME= ${PORTNAME}_beta3 Added: head/devel/as31/files/patch-debianbug655487 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/as31/files/patch-debianbug655487 Wed Oct 15 07:06:31 2014 (r370895) @@ -0,0 +1,19 @@ +--- parser.y~ 2014-10-15 09:01:14.265779740 +0200 ++++ parser.y 2014-10-15 09:02:26.951775397 +0200 +@@ -1016,13 +1016,13 @@ + * + */ + +-#define indx(a) ( (a)/(sizeof(long)*8) ) +-#define bit(a) ( 1 << ((a)%(sizeof(long)*8)) ) ++#define indx(a) ( (a)/(32) ) ++#define bit(a) ( 1 << ((a)%(32)) ) + + #define getloc(a) (regions[indx(a)] & bit(a)) + #define setloc(a) (regions[indx(a)] |= bit(a)) + +-static unsigned long regions[ 0x10000/(sizeof(long)*8) ]; ++static unsigned long regions[ 0x10000/(32) ]; + + void inclc(int i) + {