Browse Source

Update common_arm64.h

pull/4648/head
Martin Kroeker GitHub 1 year ago
parent
commit
e32a9f2931
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      common_arm64.h

+ 2
- 1
common_arm64.h View File

@@ -63,7 +63,8 @@ static __inline int WhereAmI(void){
:"=r" (ret)
:: "memory"
);
if (ret > MAX_CPU_NUMBER) ret = MAX_CPU_NUMBER;
ret +=1;
if ((int)ret <0) ret = 0;
return (int)ret;
}



Loading…
Cancel
Save