summaryrefslogtreecommitdiff
path: root/src/m_swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/m_swap.c')
-rw-r--r--src/m_swap.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/m_swap.c b/src/m_swap.c
index 0a3cab6d..4fd31b85 100644
--- a/src/m_swap.c
+++ b/src/m_swap.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: m_swap.c 255 2006-01-05 02:48:03Z fraggle $
+// $Id: m_swap.c 342 2006-01-24 01:46:08Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -22,6 +22,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.5 2006/01/24 01:46:08 fraggle
+// More endianness fixes
+//
// Revision 1.4 2006/01/05 02:48:03 fraggle
// Fixes for big endian machines (thanks locust)
//
@@ -41,14 +44,13 @@
//-----------------------------------------------------------------------------
static const char
-rcsid[] = "$Id: m_swap.c 255 2006-01-05 02:48:03Z fraggle $";
+rcsid[] = "$Id: m_swap.c 342 2006-01-24 01:46:08Z fraggle $";
#include "m_swap.h"
-// Not needed with big endian.
-#ifndef WORDS_BIGENDIAN
+#ifdef WORDS_BIGENDIAN
// Swap 16bit, that is, MSB and LSB byte.
unsigned short SwapSHORT(unsigned short x)
@@ -58,7 +60,7 @@ unsigned short SwapSHORT(unsigned short x)
}
// Swapping 32bit.
-unsigned long SwapLONG( unsigned long x)
+unsigned int SwapLONG( unsigned int x)
{
return
(x>>24)