openshadinglanguage/openshadinglanguage-1.13.11.0-upstream_fix_typo_dual_h.patch

24 lines
768 B
Diff

From d8c6f9a004c6fe3ae024ee17903c7ca9f9e8f9e7 Mon Sep 17 00:00:00 2001
From: Larry Gritz <lg@larrygritz.com>
Date: Mon, 23 Sep 2024 16:34:37 -0700
Subject: [PATCH] fix: Typo in dual.h made invalid template DualStorage (#1871)
Signed-off-by: Larry Gritz <lg@larrygritz.com>
---
src/include/OSL/dual.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/include/OSL/dual.h b/src/include/OSL/dual.h
index a7b5e4063..60ec05ee8 100644
--- a/src/include/OSL/dual.h
+++ b/src/include/OSL/dual.h
@@ -204,7 +204,7 @@ class DualStorage<T, 3>
: m_val(other.m_val)
, m_dx(other.m_dx)
, m_dy(other.m_dy)
- , m_dz(other.dz)
+ , m_dz(other.m_dz)
{}
OSL_HOSTDEVICE constexpr const T& elem (ConstIndex<0>) const { return m_val; }