Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuo Ishii2012-10-07 14:30:31 +0000
committerTatsuo Ishii2012-10-07 14:30:31 +0000
commit7e2f8ed2b0dcff052b8f06069e2d69f02b774f04 (patch)
treebf48339ee1070456d90a0f9ab7a95ee6e218da26 /src/interfaces/libpq/fe-lobj.c
parentb51a65f5bf4b68bc91d33d88108837d13d29df98 (diff)
Fix compiling errors on Windows platform. Fix wrong usage of
INT64CONST macro. Fix lo_hton64 and lo_ntoh64 not to use int32_t and uint32_t.
Diffstat (limited to 'src/interfaces/libpq/fe-lobj.c')
-rw-r--r--src/interfaces/libpq/fe-lobj.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/interfaces/libpq/fe-lobj.c b/src/interfaces/libpq/fe-lobj.c
index fb17ac8b1e9..022cfec0932 100644
--- a/src/interfaces/libpq/fe-lobj.c
+++ b/src/interfaces/libpq/fe-lobj.c
@@ -1046,13 +1046,13 @@ static pg_int64
lo_hton64(pg_int64 host64)
{
pg_int64 result;
- uint32_t h32, l32;
+ uint32 h32, l32;
/* High order half first, since we're doing MSB-first */
- h32 = (uint32_t) (host64 >> 32);
+ h32 = (uint32) (host64 >> 32);
/* Now the low order half */
- l32 = (uint32_t) (host64 & 0xffffffff);
+ l32 = (uint32) (host64 & 0xffffffff);
result = htonl(l32);
result <<= 32;
@@ -1069,10 +1069,10 @@ static pg_int64
lo_ntoh64(pg_int64 net64)
{
pg_int64 result;
- uint32_t h32, l32;
+ uint32 h32, l32;
- l32 = (uint32_t) (net64 >> 32);
- h32 = (uint32_t) (net64 & 0xffffffff);
+ l32 = (uint32) (net64 >> 32);
+ h32 = (uint32) (net64 & 0xffffffff);
result = ntohl(h32);
result <<= 32;