Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit add04f2

Browse files
[SYCL][ESIMD] Fix compilation error in linear.cpp (#45)
1 parent 884589a commit add04f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SYCL/ESIMD/linear/bitmap_helpers.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ __SYCL_INLINE_NAMESPACE(cl) {
256256
width = abs(*(short *)&header_out[18]);
257257
height = abs(*(short *)&header_out[22]);
258258

259-
img_out = (unsigned char *)malloc(width * height * 3);
260-
img_gold = (unsigned char *)malloc(width * height * 3);
259+
img_out = (unsigned char *)std::malloc(width * height * 3);
260+
img_gold = (unsigned char *)std::malloc(width * height * 3);
261261

262262
if (fread(img_out, 1, width * height * 3, f_out) != width * height * 3) {
263263
perror(f_out_str);

0 commit comments

Comments
 (0)