tests: Avoid shift into sign undefined behavior

This commit is contained in:
Mark Harris 2016-07-21 21:22:22 -07:00
parent de473b305c
commit d401961a18
2 changed files with 2 additions and 2 deletions

View file

@ -490,7 +490,7 @@ int main(int _argc, char **_argv)
iseed=atoi(env_seed);
env_used=1;
}
else iseed=(opus_uint32)time(NULL)^((getpid()&65535)<<16);
else iseed=(opus_uint32)time(NULL)^(((opus_uint32)getpid()&65535)<<16);
Rw=Rz=iseed;
oversion=opus_get_version_string();