mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-11-04 01:32:25 -06:00 
			
		
		
		
	[chore]: Bump github.com/tdewolff/minify/v2 from 2.21.3 to 2.22.3 (#3933)
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.21.3 to 2.22.3. - [Release notes](https://github.com/tdewolff/minify/releases) - [Commits](https://github.com/tdewolff/minify/compare/v2.21.3...v2.22.3) --- updated-dependencies: - dependency-name: github.com/tdewolff/minify/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								a844f322ee
							
						
					
				
			
			
				commit
				
					
						f7e5f31c6b
					
				
			
		
					 8 changed files with 69 additions and 49 deletions
				
			
		
							
								
								
									
										23
									
								
								vendor/github.com/tdewolff/parse/v2/strconv/decimal.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										23
									
								
								vendor/github.com/tdewolff/parse/v2/strconv/decimal.go
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -8,11 +8,11 @@ import (
 | 
			
		|||
func ParseDecimal(b []byte) (float64, int) {
 | 
			
		||||
	// float64 has up to 17 significant decimal digits and an exponent in [-1022,1023]
 | 
			
		||||
	i := 0
 | 
			
		||||
	//sign := 1.0
 | 
			
		||||
	//if 0 < len(b) && b[0] == '-' {
 | 
			
		||||
	//	sign = -1.0
 | 
			
		||||
	//	i++
 | 
			
		||||
	//}
 | 
			
		||||
	sign := 1.0
 | 
			
		||||
	if 0 < len(b) && b[0] == '-' {
 | 
			
		||||
		sign = -1.0
 | 
			
		||||
		i++
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	start := -1
 | 
			
		||||
	dot := -1
 | 
			
		||||
| 
						 | 
				
			
			@ -52,17 +52,16 @@ func ParseDecimal(b []byte) (float64, int) {
 | 
			
		|||
		exp++
 | 
			
		||||
	}
 | 
			
		||||
	if 1023 < exp {
 | 
			
		||||
		return math.Inf(1), i
 | 
			
		||||
		//if sign == 1.0 {
 | 
			
		||||
		//	return math.Inf(1), i
 | 
			
		||||
		//} else {
 | 
			
		||||
		//	return math.Inf(-1), i
 | 
			
		||||
		//}
 | 
			
		||||
		if sign == 1.0 {
 | 
			
		||||
			return math.Inf(1), i
 | 
			
		||||
		} else {
 | 
			
		||||
			return math.Inf(-1), i
 | 
			
		||||
		}
 | 
			
		||||
	} else if exp < -1022 {
 | 
			
		||||
		return 0.0, i
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	f := float64(n) // sign * float64(n)
 | 
			
		||||
	f := sign * float64(n)
 | 
			
		||||
	if 0 <= exp && exp < 23 {
 | 
			
		||||
		return f * float64pow10[exp], i
 | 
			
		||||
	} else if 23 < exp && exp < 0 {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue