Skip to content

Commit c3bd566

Browse files
committed
cel_cc_embed: Open in file in binary mode
1 parent 050b21e commit c3bd566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bazel/cel_cc_embed.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace {
3434

3535
std::vector<uint8_t> ReadFile(const std::string& path) {
3636
ABSL_CHECK(!path.empty()) << "--in is required";
37-
std::ifstream file(path);
37+
std::ifstream file(path, std::ifstream::binary);
3838
ABSL_CHECK(file.is_open()) << path;
3939
file.seekg(0, file.end);
4040
ABSL_CHECK(file.good());

0 commit comments

Comments
 (0)