blob: 9e0711965d8cf3422f64e378eaa722d19053bc4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
$NetBSD: patch-ad,v 1.4 2000/02/20 18:30:39 dmcmahill Exp $
--- mpegsound/mpegsound_locals.h.orig Fri Mar 6 12:43:55 1998
+++ mpegsound/mpegsound_locals.h Sun Feb 20 10:43:00 2000
@@ -21,13 +21,13 @@
{
register unsigned short a;
-#ifndef WORDS_BIGENDIAN
+
{
int offset=bitindex>>3;
-
+#ifndef WORDS_BIGENDIAN
a=(((unsigned char)buffer[offset])<<8) | ((unsigned char)buffer[offset+1]);
- }
#else
- a=((unsigned short *)(buffer+((bixindex>>3))));
+ a=(unsigned short)(buffer[offset]);
#endif
+ }
a<<=(bitindex&7);
@@ -40,13 +40,12 @@
register unsigned short a;
-#ifndef WORDS_BIGENDIAN
{
int offset=bitindex>>3;
-
+#ifndef WORDS_BIGENDIAN
a=(((unsigned char)buffer[offset])<<8) | ((unsigned char)buffer[offset+1]);
- }
#else
- a=((unsigned short *)(buffer+((bixindex>>3))));
+ a=(unsigned short)(buffer[offset]);
#endif
+ }
a<<=(bitindex&7);
|