Content-Length: 259799 | pFad | http://github.com/postgrespro/postgres/commit/1b3bb23cc884eb0b25c5f708a0481dd49ff55ed7

13 Use Abs() macro to replace ? :. · postgrespro/postgres@1b3bb23 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/1b3bb23cc884eb0b25c5f708a0481dd49ff55ed7

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy