Skip to content

Commit 1b3bb23

Browse files
committed
Use Abs() macro to replace ? :.
1 parent f35d493 commit 1b3bb23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interfaces/ecpg/pgtypeslib/interval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ EncodeInterval(struct tm * tm, fsec_t fsec, int style, char *str)
508508
#ifdef HAVE_INT64_TIMESTAMP
509509
sprintf(cp, ":%02d", abs(tm->tm_sec));
510510
cp += strlen(cp);
511-
sprintf(cp, ".%06d", (fsec >= 0) ? fsec : -(fsec));
511+
sprintf(cp, ".%06d", Abs(fsec));
512512
#else
513513
fsec += tm->tm_sec;
514514
sprintf(cp, ":%013.10f", fabs(fsec));

0 commit comments

Comments
 (0)