Skip to content

Commit a54d4ed

Browse files
committed
Fix datatypes in comments in instr_time.h
The INSTR_TIME_GET_NANOSEC(t) and INSTR_TIME_GET_MICROSEC(t) macros return a signed int64. Discussion: https://www.postgresql.org/message-id/ZrHkv3MAQfwNSmTG@ip-10-97-1-34.eu-west-3.compute.internal
1 parent 39a138f commit a54d4ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/portability/instr_time.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
*
3333
* INSTR_TIME_GET_MILLISEC(t) convert t to double (in milliseconds)
3434
*
35-
* INSTR_TIME_GET_MICROSEC(t) convert t to uint64 (in microseconds)
35+
* INSTR_TIME_GET_MICROSEC(t) convert t to int64 (in microseconds)
3636
*
37-
* INSTR_TIME_GET_NANOSEC(t) convert t to uint64 (in nanoseconds)
37+
* INSTR_TIME_GET_NANOSEC(t) convert t to int64 (in nanoseconds)
3838
*
3939
* Note that INSTR_TIME_SUBTRACT and INSTR_TIME_ACCUM_DIFF convert
4040
* absolute times to intervals. The INSTR_TIME_GET_xxx operations are

0 commit comments

Comments
 (0)