Browse Source

Fix build

Yasuhiro Matsumoto 6 năm trước cách đây
mục cha
commit
98ec13f34a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      colorable_windows.go

+ 1 - 1
colorable_windows.go

@@ -419,7 +419,7 @@ func atoiWithDefault(s string, def int) (int, error) {
 	if s == "" {
 		return def, nil
 	}
-	return strconv.Atoi(buf.String())
+	return strconv.Atoi(s)
 }
 
 // Write writes data on console