Skip to content

Commit

Permalink
Adjust Integer size for ILP64
Browse files Browse the repository at this point in the history
Otherwise, for EQUIVALENCE the wrong type may be used as the general
type. This happens f.e.  in ieeer.x
  • Loading branch information
olebole committed Oct 19, 2017
1 parent 670c8a8 commit 2dee32c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion unix/f2c/src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ int tyint = TYLONG ;
int tylogical = TYLONG;
int tylog = TYLOGICAL;
int typesize[NTYPES] = {
1, SZADDR, 1, SZSHORT, SZLONG,
1, SZADDR, 1, SZSHORT,
#if (__SIZEOF_LONG__ == 8 && __SIZEOF_POINTER__ == 8) /* ILP64 */
2*SZLONG,
#else /* ILP32 */
SZLONG,
#endif
#ifdef TYQUAD
2*SZLONG,
#endif
Expand Down

0 comments on commit 2dee32c

Please sign in to comment.