diff options
author | Nathan Bossart | 2025-06-06 16:40:52 +0000 |
---|---|---|
committer | Nathan Bossart | 2025-06-06 16:40:52 +0000 |
commit | 304862973e9a77c31cbf05d10b8b71c1a2870e59 (patch) | |
tree | 6d01a4f88ae74fb7ab866d4205b6949a55c9ef4e | |
parent | e6eed40e44419e3268d01fe0d2daec08a7df68f7 (diff) |
Fixed signed/unsigned mismatch in test_dsm_registry.
Oversight in commit 8b2bcf3f28.
Reviewed-by: Masahiko Sawada <[email protected]>
Discussion: https://postgr.es/m/aECi_gSD9JnVWQ8T%40nathan
Backpatch-through: 17
-rw-r--r-- | src/test/modules/test_dsm_registry/test_dsm_registry.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/modules/test_dsm_registry/test_dsm_registry.c b/src/test/modules/test_dsm_registry/test_dsm_registry.c index 462a80f8790..96a890be228 100644 --- a/src/test/modules/test_dsm_registry/test_dsm_registry.c +++ b/src/test/modules/test_dsm_registry/test_dsm_registry.c @@ -54,7 +54,7 @@ set_val_in_shmem(PG_FUNCTION_ARGS) tdr_attach_shmem(); LWLockAcquire(&tdr_state->lck, LW_EXCLUSIVE); - tdr_state->val = PG_GETARG_UINT32(0); + tdr_state->val = PG_GETARG_INT32(0); LWLockRelease(&tdr_state->lck); PG_RETURN_VOID(); @@ -72,5 +72,5 @@ get_val_in_shmem(PG_FUNCTION_ARGS) ret = tdr_state->val; LWLockRelease(&tdr_state->lck); - PG_RETURN_UINT32(ret); + PG_RETURN_INT32(ret); } |