[ pycrypto-Bugs-1185980 ] RIPEMD does not work on amd64

"SourceForge.net" <[email protected]> Tue, 19 Apr 2005 06:59:13 -0700
Newsgroups gmane.comp.python.cryptography.cvs
Message-ID <[email protected]>
Bugs item #1185980, was opened at 2005-04-19 09:59
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=120937&aid=1185980&group_id=20937

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Mihai Ibanescu (misa)
Assigned to: Nobody/Anonymous (nobody)
Summary: RIPEMD does not work on amd64

Initial Comment:
The problem is in RIPEMD.c:

#ifdef __alpha__
typedef    unsigned int        word;   /* unsigned
32-bit integer */
#else
typedef    unsigned long        word;   /* unsigned
32-bit integer */
#endif


The way I patched it was:

#include <inttypes.h>

typedef uint32_t word; /* unsigned 32-bit integer */

As long as your compiler is C99 compliant, this should
work just fine.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=120937&aid=1185980&group_id=20937


-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728