mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
Fix shoco heisenleak
This commit is contained in:
@@ -87,12 +87,10 @@ shoco_test :: proc(t: ^testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for v in Shoco_Tests {
|
for v in Shoco_Tests {
|
||||||
when ODIN_OS == .Windows {
|
v := v
|
||||||
v := v
|
// Compressed source files are not encoded with carriage returns but git replaces raw files lf with crlf on commit (on windows only)
|
||||||
// Compressed source files are not encoded with carriage returns but git replaces raw files lf with crlf on commit (on windows only)
|
// So replace crlf with lf on windows
|
||||||
// So replace crlf with lf on windows
|
v.raw, _ = bytes.replace_all(v.raw, { 0xD, 0xA }, { 0xA }, context.temp_allocator)
|
||||||
v.raw, _ = bytes.replace_all(v.raw, { 0xD, 0xA }, { 0xA })
|
|
||||||
}
|
|
||||||
|
|
||||||
expected_raw := len(v.raw)
|
expected_raw := len(v.raw)
|
||||||
expected_compressed := len(v.compressed)
|
expected_compressed := len(v.compressed)
|
||||||
|
|||||||
Reference in New Issue
Block a user