File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ typedef struct LargeObjectDesc
65
65
/*
66
66
* Maximum byte length for each large object
67
67
*/
68
- #define MAX_LARGE_OBJECT_SIZE INT64CONST( INT_MAX * LOBLKSIZE)
68
+ #define MAX_LARGE_OBJECT_SIZE ((int64) INT_MAX * LOBLKSIZE)
69
69
70
70
/*
71
71
* Function definitions...
Original file line number Diff line number Diff line change @@ -1046,13 +1046,13 @@ static pg_int64
1046
1046
lo_hton64 (pg_int64 host64 )
1047
1047
{
1048
1048
pg_int64 result ;
1049
- uint32_t h32 , l32 ;
1049
+ uint32 h32 , l32 ;
1050
1050
1051
1051
/* High order half first, since we're doing MSB-first */
1052
- h32 = (uint32_t ) (host64 >> 32 );
1052
+ h32 = (uint32 ) (host64 >> 32 );
1053
1053
1054
1054
/* Now the low order half */
1055
- l32 = (uint32_t ) (host64 & 0xffffffff );
1055
+ l32 = (uint32 ) (host64 & 0xffffffff );
1056
1056
1057
1057
result = htonl (l32 );
1058
1058
result <<= 32 ;
@@ -1069,10 +1069,10 @@ static pg_int64
1069
1069
lo_ntoh64 (pg_int64 net64 )
1070
1070
{
1071
1071
pg_int64 result ;
1072
- uint32_t h32 , l32 ;
1072
+ uint32 h32 , l32 ;
1073
1073
1074
- l32 = (uint32_t ) (net64 >> 32 );
1075
- h32 = (uint32_t ) (net64 & 0xffffffff );
1074
+ l32 = (uint32 ) (net64 >> 32 );
1075
+ h32 = (uint32 ) (net64 & 0xffffffff );
1076
1076
1077
1077
result = ntohl (h32 );
1078
1078
result <<= 32 ;
You can’t perform that action at this time.
0 commit comments