comparison Python/sysmodule.c @ 65603:be8ae6b17539

follow up to #9778: define and use an unsigned hash type
author Benjamin Peterson <benjamin@python.org>
date Sat, 23 Oct 2010 16:20:50 +0000
parents 0b5bfba7a907
children d7d323de35e7
comparison
equal deleted inserted replaced
65601:3835bcbfb29c 65603:be8ae6b17539
567 if (hash_info == NULL) 567 if (hash_info == NULL)
568 return NULL; 568 return NULL;
569 PyStructSequence_SET_ITEM(hash_info, field++, 569 PyStructSequence_SET_ITEM(hash_info, field++,
570 PyLong_FromLong(8*sizeof(Py_hash_t))); 570 PyLong_FromLong(8*sizeof(Py_hash_t)));
571 PyStructSequence_SET_ITEM(hash_info, field++, 571 PyStructSequence_SET_ITEM(hash_info, field++,
572 PyLong_FromLong(_PyHASH_MODULUS)); 572 PyLong_FromSsize_t(_PyHASH_MODULUS));
573 PyStructSequence_SET_ITEM(hash_info, field++, 573 PyStructSequence_SET_ITEM(hash_info, field++,
574 PyLong_FromLong(_PyHASH_INF)); 574 PyLong_FromLong(_PyHASH_INF));
575 PyStructSequence_SET_ITEM(hash_info, field++, 575 PyStructSequence_SET_ITEM(hash_info, field++,
576 PyLong_FromLong(_PyHASH_NAN)); 576 PyLong_FromLong(_PyHASH_NAN));
577 PyStructSequence_SET_ITEM(hash_info, field++, 577 PyStructSequence_SET_ITEM(hash_info, field++,