Skip to content

Commit 65145d0

Browse files
Fixed signed/unsigned mismatch in test_dsm_registry.
Oversight in commit 8b2bcf3. Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com> Discussion: https://postgr.es/m/aECi_gSD9JnVWQ8T%40nathan Backpatch-through: 17
1 parent e4b8f92 commit 65145d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/modules/test_dsm_registry/test_dsm_registry.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ set_val_in_shmem(PG_FUNCTION_ARGS)
5454
tdr_attach_shmem();
5555

5656
LWLockAcquire(&tdr_state->lck, LW_EXCLUSIVE);
57-
tdr_state->val = PG_GETARG_UINT32(0);
57+
tdr_state->val = PG_GETARG_INT32(0);
5858
LWLockRelease(&tdr_state->lck);
5959

6060
PG_RETURN_VOID();
@@ -72,5 +72,5 @@ get_val_in_shmem(PG_FUNCTION_ARGS)
7272
ret = tdr_state->val;
7373
LWLockRelease(&tdr_state->lck);
7474

75-
PG_RETURN_UINT32(ret);
75+
PG_RETURN_INT32(ret);
7676
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy