Каков правильный способ конвертировать/отличать int до size_t в C99 на обеих 32-битных и 64-битных Linux-платформах?
Пример:
int hash(void * key) {
    //...
}
int main (int argc, char * argv[]) {
    size_t size = 10;
    void * items[size];
    //...
    void * key = ...;
    // Is this the right way to convert the returned int from the hash function
    // to a size_t?
    size_t key_index = (size_t)hash(key) % size;
    void * item = items[key_index];
}