Fix timeradd

wow i am stupid for writing this code
This commit is contained in:
jD91mZM2
2018-10-11 19:52:54 +02:00
parent 1f3154b45c
commit b517629371
2 changed files with 21 additions and 11 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
#define _BITS_SYS_TIME
#define timeradd(x,y,res) (void) (\
(res)->tv_sec = (x)->tv_sec + (y)->tv_sec + ((x)->tv_usec + (y)->tv_usec / 1000000), \
(res)->tv_sec = (x)->tv_sec + (y)->tv_sec + (((x)->tv_usec + (y)->tv_usec) / 1000000), \
(res)->tv_usec = ((x)->tv_usec + (y)->tv_usec) % 1000000 \
)
#define timersub(x,y,res) (void) ( \