head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.54 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.52 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.50 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.48 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.46 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.44 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.42 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.40 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.38 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.36 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.34 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.32 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.30 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.28 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.26 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.24 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.22 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.20 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.18 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.16 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.14 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.12 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.10 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.8 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.6 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.4 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.2.0.2 pkgsrc-2003Q4-base:1.2 buildlink2-base:1.2 comdex-fall-1999:1.1; locks; strict; comment @# @; 1.2 date 99.12.12.00.08.52; author mjl; state dead; branches; next 1.1; 1.1 date 99.09.13.03.33.36; author simonb; state Exp; branches; next ; desc @@ 1.2 log @*** empty log message *** @ text @$NetBSD: patch-am,v 1.1 1999/09/13 03:33:36 simonb Exp $ --- loop.c.orig Sat Jul 24 07:50:33 1999 +++ loop.c Mon Sep 13 12:54:58 1999 @@@@ -71,7 +71,7 @@@@ [table_number][row_in_table][column of nr_of_sfb] */ -static unsigned nr_of_sfb_block[6][3][4] = +static unsigned int nr_of_sfb_block[6][3][4] = { { {6, 5, 5, 5}, @@@@ -445,7 +445,7 @@@@ int xm_scfsi_band_krit = 10; int scfsi_band; - unsigned scfsi_set; + unsigned int scfsi_set; int sfb, start, end, i; int condition = 0; @@@@ -1395,8 +1395,8 @@@@ struct { - unsigned region0_count; - unsigned region1_count; + unsigned int region0_count; + unsigned int region1_count; } subdv_table[ 23 ] = { {0, 0}, /* 0 bands */ @@@@ -1789,8 +1789,8 @@@@ for ( ; sfb < 13; sfb++ ) { - unsigned tableindex = 100; - unsigned idx; + unsigned int tableindex = 100; + unsigned int idx; struct huffcodetab *h; start = scalefac_band_short[ sfb ]; @@@@ -1870,7 +1870,7 @@@@ int count_bit_tj( int abs_ix[576], unsigned int start, unsigned int end, unsigned int table ) { int i, sum; - unsigned idx; + unsigned int idx; struct huffcodetab *h; int x, y; @@@@ -1951,7 +1951,7 @@@@ double aint(double in) { - return((long) in); + return((int) in); } #endif @ 1.1 log @Use the source-code version of bladeenc (0.82-stable2), which should work on all architectures. Tested on pmax, i386 and alpha (no big-endian machines!) and gives identical results, although not identical to the binary-only 0.76. If there's any big-endian people who want to test this, please let me know. Lots of patches because 64-bit longs just "Don't Work(tm)" - just use ints everywhere. I'm in communication with the author on how to fix this at his end. @ text @d1 1 a1 1 $NetBSD$ @