Commit 3c8f7a8f authored by Clément Bœsch's avatar Clément Bœsch

Merge commit 'e89cef40'

* commit 'e89cef40':
  checkasm: Read the unsigned value as it should
Merged-by: 's avatarClément Bœsch <u@pkh.me>
parents 9785b1e2 e89cef40
......@@ -502,7 +502,8 @@ static void print_cpu_name(void)
int main(int argc, char *argv[])
{
int i, seed, ret = 0;
unsigned int seed;
int i, ret = 0;
#if ARCH_ARM && HAVE_ARMV5TE_EXTERNAL
if (have_vfp(av_get_cpu_flags()) || have_neon(av_get_cpu_flags()))
......@@ -529,7 +530,7 @@ int main(int argc, char *argv[])
argv++;
}
seed = (argc > 1) ? atoi(argv[1]) : av_get_random_seed();
seed = (argc > 1) ? strtoul(argv[1], NULL, 10) : av_get_random_seed();
fprintf(stderr, "checkasm: using random seed %u\n", seed);
av_lfg_init(&checkasm_lfg, seed);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment