Merge branch 'jk/bisect-prn-unsigned' into maint

* jk/bisect-prn-unsigned:
  bisect: avoid signed integer overflow
This commit is contained in:
Junio C Hamano 2013-04-12 13:41:46 -07:00
Родитель cd12104ab6 7b96d88802
Коммит 23589a90c3
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -525,9 +525,9 @@ struct commit_list *filter_skipped(struct commit_list *list,
* is increased by one between each call, but that should not matter
* for this application.
*/
static int get_prn(int count) {
static unsigned get_prn(unsigned count) {
count = count * 1103515245 + 12345;
return ((unsigned)(count/65536) % PRN_MODULO);
return (count/65536) % PRN_MODULO;
}
/*