Fix issue with -thread-count flag with <= 0 count

This commit is contained in:
gingerBill
2019-12-03 18:23:14 +00:00
parent 42def957d5
commit f170648629
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ generic_ftoa :: proc(buf: []byte, val: f64, fmt: byte, precision, bit_size: int)
} else {
s = "+Inf";
}
n := copy(buf, transmute([]byte)s);
n := copy(buf, s);
return buf[:n];
case 0: // denormalized