mirror of
				https://github.com/golang/go.git
				synced 2025-11-04 02:30:57 +00:00 
			
		
		
		
	correctly rounded floating-point conversions
in new package strconv. move atoi etc to strconv too. update fmt, etc to use strconv. R=r DELTA=2232 (1691 added, 424 deleted, 117 changed) OCL=19286 CL=19380
This commit is contained in:
		
							parent
							
								
									f333f4685c
								
							
						
					
					
						commit
						079c00a475
					
				
					 24 changed files with 1819 additions and 530 deletions
				
			
		| 
						 | 
				
			
			@ -13,7 +13,7 @@ import (
 | 
			
		|||
	"os";
 | 
			
		||||
	"net";
 | 
			
		||||
	"http";
 | 
			
		||||
	"strings"
 | 
			
		||||
	"strconv";
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// Serve a new connection.
 | 
			
		||||
| 
						 | 
				
			
			@ -39,7 +39,7 @@ func ServeConnection(fd net.Conn, raddr string, f *(*Conn, *Request)) {
 | 
			
		|||
export func Serve(l net.Listener, f *(*Conn, *Request)) *os.Error {
 | 
			
		||||
	// TODO: Make this unnecessary
 | 
			
		||||
	s, e := os.Getenv("GOMAXPROCS");
 | 
			
		||||
	if n, ok := strings.atoi(s); n < 3 {
 | 
			
		||||
	if n, ok := strconv.atoi(s); n < 3 {
 | 
			
		||||
		print("Warning: $GOMAXPROCS needs to be at least 3.\n");
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue