Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37563203
en ru br
ALT Linux repos
S:0.9.2.3-alt3

Group :: File tools
RPM: dmsdos

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: patch-aa
Download


$NetBSD: patch-aa,v 1.1.1.1 2008/02/08 21:18:44 drochner Exp $
--- src/dstacker_compr.c.orig	2008-02-08 20:30:49.000000000 +0100
+++ src/dstacker_compr.c
@@ -139,8 +139,8 @@ INLINE __u16 swap_bytes_in_word(__u16 x)
 /* this is problematic on architectures,        */
 /* which cannot do __u16 access to odd address. */
 /* used for temporary storage of LZ intercode.  */
-#define C_ST_u16(p,v) {put_unaligned(v,((__u16*)p)++);}
-#define C_LD_u16(p,v) {v=get_unaligned(((__u16*)p)++);}
+#define C_ST_u16(p,v) {put_unaligned(v,p);p=(__u16*)p+1;}
+#define C_LD_u16(p,v) {v=get_unaligned(p);p=(__u16*)p+1;}
 
 /* for reading and writting from/to bitstream */
 typedef
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin