Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6cceb22

Browse files
committed
Fix integer types
1 parent dee55cd commit 6cceb22

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

src/backend/commands/partition.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ static char *
357357
generate_unique_child_relname(Oid relid, const char *prefix)
358358
{
359359
Oid namespace = get_rel_namespace(relid);
360-
uint32_t cnt = 0;
360+
uint32 cnt = 0;
361361
char *relname;
362362

363363
/* Try till we get a unique name */

src/backend/commands/pathman_wrapper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ pm_get_part_range(Oid relid, int partnum, Oid atttype, Datum *min, Datum *max)
321321
void
322322
pm_create_hash_partitions(Oid relid,
323323
const char *attname,
324-
uint32_t partitions_count,
324+
uint32 partitions_count,
325325
bool partition_data,
326326
char **relnames,
327327
char **tablespaces)

src/backend/storage/file/cfs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
#include <fcntl.h>
3535
#ifndef WIN32
3636
#include <sys/mman.h>
37+
#else
38+
#include <stdint.h>
3739
#endif
3840

3941
#include "miscadmin.h"

src/backend/storage/file/fd.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
#include <sys/stat.h>
6464
#ifndef WIN32
6565
#include <sys/mman.h>
66+
#else
67+
#include <stdint.h>
6668
#endif
6769
#include <limits.h>
6870
#include <unistd.h>
@@ -1781,7 +1783,7 @@ FileWriteback(File file, off_t offset, off_t nbytes, uint32 wait_event_info)
17811783
end = virtSize / BLCKSZ;
17821784
for (; i <= end; i++)
17831785
{
1784-
uint32_t offs, size;
1786+
uint32 offs, size;
17851787
inode = map->inodes[i];
17861788
offs = CFS_INODE_SIZE(inode);
17871789
size = CFS_INODE_OFFS(inode);

0 commit comments

Comments
 (0)