소스 검색

Fix build

Yasuhiro Matsumoto 6 년 전
부모
커밋
98ec13f34a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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