X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f53fcc2ecd83775363e947cd7b7e4f014e87c31d..6fb7cd815ecf6b7f0874482aec3d82ad62bd4c4c:/teshsuite/smpi/macro-shared/macro-shared.c diff --git a/teshsuite/smpi/macro-shared/macro-shared.c b/teshsuite/smpi/macro-shared/macro-shared.c index 5c3ee9fe5d..d1d9966e82 100644 --- a/teshsuite/smpi/macro-shared/macro-shared.c +++ b/teshsuite/smpi/macro-shared/macro-shared.c @@ -16,10 +16,11 @@ static void* hash(char *str, uint64_t* ans) char *tohash = str; *ans=5381; printf("hashing !\n"); - int c = *(tohash++); + int c = *tohash; while (c != 0) { *ans = ((*ans << 5) + *ans) + c; /* hash * 33 + c */ - c = *(tohash++); + tohash++; + c = *tohash; } return NULL; }