Skip to content

Commit 0f8fe79

Browse files
author
bragadeesh
committed
adding explicit cast for float4 pointer assignments
1 parent 304b9f4 commit 0f8fe79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/library/generator.stockham.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,8 @@ namespace StockhamGenerator
819819

820820
passStr += "\n\t";
821821
passStr += "__global "; passStr += RegBaseType<PR>(4);
822-
passStr += " *buff4g = "; passStr += bufferRe; passStr += ";\n\t"; // Assuming 'outOffset' is 0, so not adding it here
822+
passStr += " *buff4g = (__global "; passStr += RegBaseType<PR>(4); passStr += " *)";
823+
passStr += bufferRe; passStr += ";\n\t"; // Assuming 'outOffset' is 0, so not adding it here
823824

824825
for(size_t r=0; r<radix; r++) // setting the radix loop outside to facilitate grouped writing
825826
{

0 commit comments

Comments
 (0)