Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
be6da271
Commit
be6da271
authored
Jul 21, 1996
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use INT_MAX/LONG_MAX instead of non-ANSI LONG_BIT
parent
3d602e31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
Modules/md5.h
Modules/md5.h
+4
-5
No files found.
Modules/md5.h
View file @
be6da271
...
@@ -48,16 +48,15 @@ typedef unsigned short int UINT2;
...
@@ -48,16 +48,15 @@ typedef unsigned short int UINT2;
#ifdef HAVE_LIMITS_H
#ifdef HAVE_LIMITS_H
#include <limits.h>
#include <limits.h>
#else
#else
#ifndef LONG_BIT
/* Wild guess */
#define LONG_BIT 32
#define LONG_MAX 2147483647L
#endif
#endif
#endif
/* UINT4 defines a four byte word */
/* UINT4 defines a four byte word */
#if
WORD_BIT == 32
#if
defined(INT_MAX) && INT_MAX == 2147483647
typedef
unsigned
int
UINT4
;
typedef
unsigned
int
UINT4
;
#else
#else
#if
LONG_BIT == 32
#if
defined(LONG_MAX) && LONG_MAX == 2147483647L
typedef
unsigned
long
int
UINT4
;
typedef
unsigned
long
int
UINT4
;
#endif
#endif
/* Too bad if neither is */
/* Too bad if neither is */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment