Skip to content

Commit c82168c

Browse files
Binary files can contain NULL
1 parent 7e1ac0a commit c82168c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

sycl-jit/jit-compiler/include/Resource.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#pragma once
1010

11+
#include <iterator>
1112
#include <string_view>
1213
#include <utility>
1314

sycl-jit/jit-compiler/utils/generate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def process_dir(dir):
4343
static const char data[] = {{
4444
#embed "{file_path}" if_empty(0)
4545
, 0}};
46-
return std::string_view(data);
46+
return std::string_view(data, std::size(data) - 1);
4747
}}()
4848
}},"""
4949
)

0 commit comments

Comments
 (0)