Changeset 27c79f in git


Ignore:
Timestamp:
Feb 25, 2013, 12:53:53 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '5a0dde71de01068fad5736a17555c993ecbbf495')
Children:
9d68fdf479afa832b1ae8fbea4d7345ac1b18fbd
Parents:
26ebc69791aa463ad9adef87b7a8ee64433b8d6b
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-02-25 12:53:53+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-02-25 12:55:10+01:00
Message:
fix: work around abort() in allowed int overflow
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/links/ndbm.cc

    r26ebc6 r27c79f  
    452452  register int s, c, j;
    453453  register char *cp;
    454   register long hashl;
    455   register int hashi;
     454  register unsigned long hashl;
     455  register unsigned int hashi;
    456456
    457457  hashl = 0;
     
    467467    }
    468468  }
    469   return (hashl);
     469  return (long)(hashl);
    470470}
    471471
Note: See TracChangeset for help on using the changeset viewer.