Skip to content

Commit a71152a

Browse files
committed
using +511 have a 2-complement split.
1 parent 1a0e62f commit a71152a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rtkcmn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2031,7 +2031,7 @@ extern int adjgpsweek(int week)
20312031
int w;
20322032
(void)time2gpst(utc2gpst(timeget()),&w);
20332033
if (w<1560) w=1560; /* use 2009/12/1 if time is earlier than 2009/12/1 */
2034-
return week+(w-week+512)/1024*1024;
2034+
return week+(w-week+511)/1024*1024;
20352035
}
20362036
/* get tick time ---------------------------------------------------------------
20372037
* get current tick in ms

0 commit comments

Comments
 (0)