Ignore:
Timestamp:
Nov 10, 2005, 9:41:13 PM (17 years ago)
Author:
Sam Hocevar
Message:
  • absolute shitloads of 64 bit fixes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/net/include/indian.hpp

    r2 r17  
    1010
    1111#ifdef BIGUNS
    12 #define lstl(x) (((((unsigned short) (x)))<<8)|((((unsigned short) (x)))>>8))
     12#define lstl(x) (((((uint16_t) (x)))<<8)|((((uint16_t) (x)))>>8))
    1313#define lltl(x) \
    14    ((( ((unsigned long)(x)) )>>24)|((( ((unsigned long)(x)) )&0x00ff0000)>>8)| \
    15    ((( ((unsigned long)(x)) )&0x0000ff00)<<8)|(( ((unsigned long)(x)) )<<24))
     14   ((( ((uint32_t)(x)) )>>24)|((( ((uint32_t)(x)) )&0x00ff0000)>>8)| \
     15   ((( ((uint32_t)(x)) )&0x0000ff00)<<8)|(( ((uint32_t)(x)) )<<24))
    1616#else
    1717#define lstl(x) (x)
     
    1919
    2020#endif
    21 
    22 #define uchar unsigned char
    2321
    2422#endif
Note: See TracChangeset for help on using the changeset viewer.