Fix datatypes in comments in instr_time.h
authorHeikki Linnakangas <[email protected]>
Tue, 6 Aug 2024 19:15:55 +0000 (22:15 +0300)
committerHeikki Linnakangas <[email protected]>
Tue, 6 Aug 2024 19:15:55 +0000 (22:15 +0300)
The INSTR_TIME_GET_NANOSEC(t) and INSTR_TIME_GET_MICROSEC(t) macros
return a signed int64.

Discussion: https://www.postgresql.org/message-id/[email protected]

src/include/portability/instr_time.h

index a6fc1922f2080d5d536bd391d21c06626f31a398..e66ecf34cd591f333c9a6e4f1aaa833ec3bfc71e 100644 (file)
@@ -32,9 +32,9 @@
  *
  * INSTR_TIME_GET_MILLISEC(t)          convert t to double (in milliseconds)
  *
- * INSTR_TIME_GET_MICROSEC(t)          convert t to uint64 (in microseconds)
+ * INSTR_TIME_GET_MICROSEC(t)          convert t to int64 (in microseconds)
  *
- * INSTR_TIME_GET_NANOSEC(t)           convert t to uint64 (in nanoseconds)
+ * INSTR_TIME_GET_NANOSEC(t)           convert t to int64 (in nanoseconds)
  *
  * Note that INSTR_TIME_SUBTRACT and INSTR_TIME_ACCUM_DIFF convert
  * absolute times to intervals.  The INSTR_TIME_GET_xxx operations are