Explorar o código

PS4: Fix compile.

Thanks to Eric Lavesson.
Mike Pall %!s(int64=4) %!d(string=hai) anos
pai
achega
bc98a3ade5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/lj_prng.c

+ 1 - 1
src/lj_prng.c

@@ -173,7 +173,7 @@ int LJ_FASTCALL lj_prng_seed_secure(PRNGState *rs)
 
 #elif LJ_TARGET_PS4 || LJ_TARGET_PSVITA
 
-  if (sceRandomGetRandomNumber(rs->u, sizeof(rs->u) == 0)
+  if (sceRandomGetRandomNumber(rs->u, sizeof(rs->u)) == 0)
     goto ok;
 
 #elif LJ_TARGET_UWP || LJ_TARGET_XBOXONE