Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit77d1de3

Browse files
committed
Minor parentheses cleanup.
1 parent8e0c8a2 commit77d1de3

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

‎src/interfaces/ecpg/pgtypeslib/interval.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ DecodeInterval(char **field, int *ftype, int nf, int *dtype, struct tm *tm, fsec
260260
#ifdefHAVE_INT64_TIMESTAMP
261261
*fsec+= ((fval-sec)*1000000);
262262
#else
263-
*fsec+=(fval-sec);
263+
*fsec+=fval-sec;
264264
#endif
265265
}
266266
tmask=DTK_M(MINUTE);
@@ -278,7 +278,7 @@ DecodeInterval(char **field, int *ftype, int nf, int *dtype, struct tm *tm, fsec
278278
#ifdefHAVE_INT64_TIMESTAMP
279279
*fsec+= (fval-sec)*1000000;
280280
#else
281-
*fsec+=(fval-sec);
281+
*fsec+=fval-sec;
282282
#endif
283283
}
284284
tmask=DTK_M(HOUR);
@@ -296,7 +296,7 @@ DecodeInterval(char **field, int *ftype, int nf, int *dtype, struct tm *tm, fsec
296296
#ifdefHAVE_INT64_TIMESTAMP
297297
*fsec+= (fval-sec)*1000000;
298298
#else
299-
*fsec+=(fval-sec);
299+
*fsec+=fval-sec;
300300
#endif
301301
}
302302
tmask= (fmask&DTK_M(DAY)) ?0 :DTK_M(DAY);
@@ -314,7 +314,7 @@ DecodeInterval(char **field, int *ftype, int nf, int *dtype, struct tm *tm, fsec
314314
#ifdefHAVE_INT64_TIMESTAMP
315315
*fsec+= (fval-sec)*1000000;
316316
#else
317-
*fsec+=(fval-sec);
317+
*fsec+=fval-sec;
318318
#endif
319319
}
320320
tmask= (fmask&DTK_M(DAY)) ?0 :DTK_M(DAY);
@@ -332,7 +332,7 @@ DecodeInterval(char **field, int *ftype, int nf, int *dtype, struct tm *tm, fsec
332332
#ifdefHAVE_INT64_TIMESTAMP
333333
*fsec+= (fval-sec)*1000000;
334334
#else
335-
*fsec+=(fval-sec);
335+
*fsec+=fval-sec;
336336
#endif
337337
}
338338
tmask=DTK_M(MONTH);
@@ -413,8 +413,8 @@ DecodeInterval(char **field, int *ftype, int nf, int *dtype, struct tm *tm, fsec
413413
intsec;
414414

415415
#ifdefHAVE_INT64_TIMESTAMP
416-
sec=(*fsec /USECS_PER_SEC);
417-
*fsec-=(sec*USECS_PER_SEC);
416+
sec=*fsec /USECS_PER_SEC;
417+
*fsec-=sec*USECS_PER_SEC;
418418
#else
419419
TMODULO(*fsec,sec,1.0);
420420
#endif
@@ -693,14 +693,14 @@ interval2tm(interval span, struct tm *tm, fsec_t *fsec)
693693
time=span.time;
694694

695695
#ifdefHAVE_INT64_TIMESTAMP
696-
tm->tm_mday=(time /USECS_PER_DAY);
697-
time-=(tm->tm_mday*USECS_PER_DAY);
698-
tm->tm_hour=(time /USECS_PER_HOUR);
699-
time-=(tm->tm_hour*USECS_PER_HOUR);
700-
tm->tm_min=(time /USECS_PER_MINUTE);
701-
time-=(tm->tm_min*USECS_PER_MINUTE);
702-
tm->tm_sec=(time /USECS_PER_SEC);
703-
*fsec=(time- (tm->tm_sec*USECS_PER_SEC));
696+
tm->tm_mday=time /USECS_PER_DAY;
697+
time-=tm->tm_mday*USECS_PER_DAY;
698+
tm->tm_hour=time /USECS_PER_HOUR;
699+
time-=tm->tm_hour*USECS_PER_HOUR;
700+
tm->tm_min=time /USECS_PER_MINUTE;
701+
time-=tm->tm_min*USECS_PER_MINUTE;
702+
tm->tm_sec=time /USECS_PER_SEC;
703+
*fsec=time- (tm->tm_sec*USECS_PER_SEC);
704704
#else
705705
TMODULO(time,tm->tm_mday, (double)SECS_PER_DAY);
706706
TMODULO(time,tm->tm_hour, (double)SECS_PER_HOUR);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp