projects
/
openpower-isa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
456d761
)
more crap removed
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Wed, 8 Nov 2023 20:17:54 +0000
(20:17 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Wed, 8 Nov 2023 20:17:54 +0000
(20:17 +0000)
maxloc/maxloc.c
patch
|
blob
|
history
diff --git
a/maxloc/maxloc.c
b/maxloc/maxloc.c
index 484eb830a46e61a5a9e9db371ff4e7e2e47d62f1..6becf3ef26fb8f71e50dbd0bcb774c6d49d307c2 100644
(file)
--- a/
maxloc/maxloc.c
+++ b/
maxloc/maxloc.c
@@
-1,11
+1,11
@@
#include<stdio.h>
-#include<limits.h>
-int m2(int *
const restrict
a, int n)
+
+int m2(int *a, int n)
{
int m, nm;
int i;
- m =
INT_MIN
;
+ m =
0
;
nm = -1;
i=0;
while (i<n) {