Skip to content

Commit

Permalink
Support long int on 32-bit architectures (thanks to Michael Evdokimov.)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawel Aleksander Fedorynski committed Apr 16, 2012
1 parent 28eff67 commit 9a96fd9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/core/exchange-traits.h
Expand Up @@ -90,6 +90,13 @@ struct exchange_traits<long int>
typedef basic_type_tag type_family;
enum { x_type = x_long_long };
};
#elif ( __WORDSIZE == 32 )
template <>
struct exchange_traits<long int>
{
typedef basic_type_tag type_family;
enum { x_type = x_integer };
};
#endif // #if defined (__LP64__) || ( __WORDSIZE == 64 )

template <>
Expand Down

0 comments on commit 9a96fd9

Please sign in to comment.