diff options
| author | Tom Lane | 2009-12-31 19:41:37 +0000 |
|---|---|---|
| committer | Tom Lane | 2009-12-31 19:41:37 +0000 |
| commit | 85d02a6586012edc385a420ebaca1c8ce4e93390 (patch) | |
| tree | 4331782a9095429f06b9da7b200538d596d08380 /src/backend/port | |
| parent | 8abb0110479382b1873715052933f600d682654c (diff) | |
Redefine Datum as uintptr_t, instead of unsigned long.
This is more in keeping with modern practice, and is a first step towards
porting to Win64 (which has sizeof(pointer) > sizeof(long)).
Tsutomu Yamada, Magnus Hagander, Tom Lane
Diffstat (limited to 'src/backend/port')
| -rw-r--r-- | src/backend/port/hpux/tas.c.template | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/port/hpux/tas.c.template b/src/backend/port/hpux/tas.c.template index 45782948df6..5ccbbcde9aa 100644 --- a/src/backend/port/hpux/tas.c.template +++ b/src/backend/port/hpux/tas.c.template @@ -20,7 +20,7 @@ tas(lock) * LDCWX requires that we align the "semaphore" to a 16-byte * boundary. The actual datum is a single word (4 bytes). */ - lock = ((long) lock + 15) & ~15; + lock = ((uintptr_t) lock + 15) & ~15; /* * The LDCWX instruction atomically clears the target word and |
