shithub: riscv

Download patch

ref: b83500663584cec5ddef38fec84115acc6b58955
parent: c38c964ed92a6ee9e40d2b8fcfc95923b16280e8
author: cinap_lenrek <[email protected]>
date: Fri Jan 6 14:32:34 EST 2023

libc: coding style (from drawterm)

--- a/sys/src/libc/port/strtod.c
+++ b/sys/src/libc/port/strtod.c
@@ -509,7 +509,7 @@
 {
 	int c1, c2;
 
-	while(c1 = *b++) {
+	while((c1 = *b++) != 0) {
 		c2 = *a++;
 		if(isupper(c2))
 			c2 = tolower(c2);