File: 0023-Fix-libfmt-10-compat.patch

package info (click to toggle)
open3d 0.19.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 83,496 kB
  • sloc: cpp: 206,543; python: 27,254; ansic: 8,356; javascript: 1,883; sh: 1,527; makefile: 259; xml: 69
file content (21 lines) | stat: -rw-r--r-- 758 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Thu, 28 Nov 2024 17:26:23 +0100
Subject: Fix libfmt 10 compat

---
 cpp/open3d/core/Tensor.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpp/open3d/core/Tensor.cpp b/cpp/open3d/core/Tensor.cpp
index 1fff67c..75900f0 100644
--- a/cpp/open3d/core/Tensor.cpp
+++ b/cpp/open3d/core/Tensor.cpp
@@ -1788,7 +1788,7 @@ Tensor Tensor::FromDLPack(const DLManagedTensor* src) {
             break;
         default:
             utility::LogError("Unsupported device_type {}",
-                              src->dl_tensor.ctx.device_type);
+                              int(src->dl_tensor.ctx.device_type));
     }
 
     Dtype dtype = DLDataTypeToDtype(src->dl_tensor.dtype);