diff --git a/src/main.cpp2 b/src/main.cpp2 index e129114..f43de32 100644 --- a/src/main.cpp2 +++ b/src/main.cpp2 @@ -766,7 +766,7 @@ contains_target: (targets, value: std::string) -> bool = { hash_file: (p: fs::path) -> u64 = { f: std::ifstream = (p, std::ios::binary | std::ios::ate); - size: size_t = unsafe_cast(f.tellg()); + size: size_t = unchecked_cast(f.tellg()); f.seekg(0, std::ios::beg); buffer: std::vector = (); buffer.resize(size); @@ -901,7 +901,7 @@ do_build: (targets: std::vector) -> (stuff: full_build_info, exit_c p := entry.first.generic_string(); hash := entry.second; - hash_data_file << unsafe_cast(p.size()); + hash_data_file << unchecked_cast(p.size()); hash_data_file.write(p.data(), p.size()); hash_data_file.write(reinterpret_cast<*char>(hash&), 8); }