This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-nanoarrow.git


The following commit(s) were added to refs/heads/main by this push:
     new a4b48fc5 Update dist/ for commit 
bab66ac3d503519024ae086c44d5152f2f3ea0c9
a4b48fc5 is described below

commit a4b48fc55219c94310698e8dbe68719f4d0af9df
Author: GitHub Actions <[email protected]>
AuthorDate: Wed Apr 10 01:25:36 2024 +0000

    Update dist/ for commit bab66ac3d503519024ae086c44d5152f2f3ea0c9
---
 dist/nanoarrow_device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dist/nanoarrow_device.c b/dist/nanoarrow_device.c
index 0c76d961..3896283f 100644
--- a/dist/nanoarrow_device.c
+++ b/dist/nanoarrow_device.c
@@ -115,7 +115,7 @@ struct ArrowDevice* ArrowDeviceCpu(void) {
 
 void ArrowDeviceInitCpu(struct ArrowDevice* device) {
   device->device_type = ARROW_DEVICE_CPU;
-  device->device_id = 0;
+  device->device_id = -1;
   device->array_init = NULL;
   device->array_move = NULL;
   device->buffer_init = &ArrowDeviceCpuBufferInit;
@@ -135,7 +135,7 @@ struct ArrowDevice* ArrowDeviceCuda(ArrowDeviceType 
device_type, int64_t device_
 #endif
 
 struct ArrowDevice* ArrowDeviceResolve(ArrowDeviceType device_type, int64_t 
device_id) {
-  if (device_type == ARROW_DEVICE_CPU && device_id == 0) {
+  if (device_type == ARROW_DEVICE_CPU) {
     return ArrowDeviceCpu();
   }
 

Reply via email to