Skip to content

Commit 3df987b

Browse files
committed
Fix 32-bit builds
1 parent 93d386a commit 3df987b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/gpu/sentry_gpu_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ create_gpu_context_from_info(sentry_gpu_info_t *gpu_info)
8686
// Add memory size
8787
if (gpu_info->memory_size > 0) {
8888
sentry_value_set_by_key(gpu_context, "memory_size",
89-
sentry_value_new_int64((int64_t)gpu_info->memory_size));
89+
sentry_value_new_uint64(gpu_info->memory_size));
9090
}
9191

9292
// Add driver version

src/gpu/sentry_gpu_vulkan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ create_gpu_info_from_device(VkPhysicalDevice device)
164164

165165
gpu_info->driver_version = sentry__string_clone(driver_version_str);
166166

167-
size_t total_memory = 0;
167+
uint64_t total_memory = 0;
168168
for (uint32_t i = 0; i < memory_properties.memoryHeapCount; i++) {
169169
if (memory_properties.memoryHeaps[i].flags
170170
& VK_MEMORY_HEAP_DEVICE_LOCAL_BIT) {

src/sentry_gpu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ typedef struct sentry_gpu_info_s {
1414
char *driver_version;
1515
unsigned int vendor_id;
1616
unsigned int device_id;
17-
size_t memory_size;
17+
uint64_t memory_size;
1818
} sentry_gpu_info_t;
1919

2020
typedef struct sentry_gpu_list_s {

0 commit comments

Comments
 (0)