Add a patch to fix build on big-endian hosts ("not an lvalue").

Bump PKGREVISION.
This commit is contained in:
he 2019-04-24 13:26:25 +00:00
parent 19a8b90feb
commit ea95a39399
2 changed files with 18 additions and 2 deletions

View file

@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.27 2018/07/18 00:06:19 joerg Exp $
# $NetBSD: Makefile,v 1.28 2019/04/24 13:26:25 he Exp $
#
DISTNAME= libvideogfx-1.0.3
PKGREVISION= 9
PKGREVISION= 10
CATEGORIES= graphics
MASTER_SITES= http://rachmaninoff.informatik.uni-mannheim.de/libvideogfx/data/

View file

@ -0,0 +1,16 @@
$NetBSD: patch-libvideogfx_utility_bitstream_bitreader.cc,v 1.1 2019/04/24 13:26:25 he Exp $
Instead of fixing precedence ("not an lvalue"), split operation like on x86.
--- libvideogfx/utility/bitstream/bitreader.cc.orig 2002-05-02 11:47:11.000000000 +0000
+++ libvideogfx/utility/bitstream/bitreader.cc
@@ -37,7 +37,8 @@ namespace videogfx {
void BitReader::Refill()
{
#if WORDS_BIGENDIAN
- uint32 val = *((uint32*)d_ptr)++;
+ uint32 val = *((uint32*)d_ptr);
+ d_ptr+=4;
uint64 val64 = val;
val64 <<= 64-32-d_bitsleft;