projects
/
42
/
philosophers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9f489d
)
Fix logic bug
author
Lukas Jiriste
<ljiriste@student.42prague.com>
Thu, 28 Mar 2024 10:54:47 +0000
(11:54 +0100)
committer
Lukas Jiriste
<ljiriste@student.42prague.com>
Thu, 28 Mar 2024 10:54:47 +0000
(11:54 +0100)
philo/parsing_misc.c
patch
|
blob
|
history
diff --git
a/philo/parsing_misc.c
b/philo/parsing_misc.c
index 569b146c76057f5b64c7e507718e8eb5a198f430..747648ab54d5ecbc2e1d0731c64d907833051a80 100644
(file)
--- a/
philo/parsing_misc.c
+++ b/
philo/parsing_misc.c
@@
-6,7
+6,7
@@
/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/26 10:42:02 by ljiriste #+# #+# */
-/* Updated: 2024/03/28 11:
28:12
by ljiriste ### ########.fr */
+/* Updated: 2024/03/28 11:
53:49
by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
@@
-71,5
+71,5
@@
int same_number(const char *num1, const char *num2)
++num1;
++num2;
}
- return (
(int)*num1 - (int)*num2
);
+ return (
!((int)*num1 - (int)*num2)
);
}