mirror of
https://github.com/xiph/opus.git
synced 2025-05-28 06:09:15 +00:00
tests: Avoid shift into sign undefined behavior
This commit is contained in:
parent
de473b305c
commit
d401961a18
2 changed files with 2 additions and 2 deletions
tests
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue