shithub: mc

Download patch

ref: d90515c5036b9c62dedc9895c781c6459c872209
parent: 4db5274a2f6db10e31e11c503f36c85a98c65fbc
author: Ori Bernstein <[email protected]>
date: Fri Aug 28 16:31:41 EDT 2020

test/ipparse: put expected and parsed in different buffers

--- a/lib/std/test/ipparse.myr
+++ b/lib/std/test/ipparse.myr
@@ -60,13 +60,13 @@
 }
 
 const eq = {ip, expected
-	var dst : byte[16]
+	var pdst, edst : byte[16]
 	var parsed
 	var p, e
 
 	parsed = std.ipparse(ip)
-	p = ipbytes(dst[:], parsed)
-	e = ipbytes(dst[:], expected)
+	p = ipbytes(pdst[:], parsed)
+	e = ipbytes(edst[:], expected)
 	if !std.eq(p, e)
 		std.fput(1, "misparsed ip {}\n", ip)
 		std.put("parsed: ")