Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for overflows (0.14 sec)

  1. src/internal/types/testdata/spec/range_int.go

    	}
    	for range maxUint /* ERROR "cannot use maxUint (untyped int constant 18446744073709551615) as int value in range clause (overflows)" */ {
    	}
    
    	for i := range maxInt {
    		_ = i
    	}
    	for i := range maxInt /* ERROR "cannot use maxInt + 1 (untyped int constant 9223372036854775808) as int value in range clause (overflows)" */ + 1 {
    		_ = i
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:56:00 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. src/log/slog/value_test.go

    		TimeValue(testTime),
    		TimeValue(time.Time{}),
    		TimeValue(time.Date(2001, 1, 2, 3, 4, 5, 0, time.UTC)),
    		TimeValue(time.Date(2300, 1, 1, 0, 0, 0, 0, time.UTC)),            // overflows nanoseconds
    		TimeValue(time.Date(1715, 6, 13, 0, 25, 26, 290448384, time.UTC)), // overflowed value
    		AnyValue(&x),
    		AnyValue(&y),
    		GroupValue(Bool("b", true), Int("i", 3)),
    		GroupValue(Bool("b", true), Int("i", 4)),
    		GroupValue(Bool("b", true), Int("j", 4)),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. src/go/types/conversions.go

    		ok = constConvertibleTo(T, &x.val)
    		// A conversion from an integer constant to an integer type
    		// can only fail if there's overflow. Give a concise error.
    		// (go.dev/issue/63563)
    		if !ok && isInteger(x.typ) && isInteger(T) {
    			check.errorf(x, InvalidConversion, "constant %s overflows %s", x.val, T)
    			x.mode = invalid
    			return
    		}
    	case constArg && isTypeParam(T):
    		// x is convertible to T if it is convertible
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. src/strconv/atoi.go

    		}
    
    		if d >= byte(base) {
    			return 0, syntaxError(fnParseUint, s0)
    		}
    
    		if n >= cutoff {
    			// n*base overflows
    			return maxVal, rangeError(fnParseUint, s0)
    		}
    		n *= uint64(base)
    
    		n1 := n + uint64(d)
    		if n1 < n || n1 > maxVal {
    			// n+d overflows
    			return maxVal, rangeError(fnParseUint, s0)
    		}
    		n = n1
    	}
    
    	if underscores && !underscoreOK(s0) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 05 00:24:26 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. cmd/warm-backend-minio.go

    	if objectSize > maxMultipartPutObjectSize {
    		err = errors.New("entity too large")
    		return
    	}
    
    	configuredPartSize := minPartSize
    	// Use floats for part size for all calculations to avoid
    	// overflows during float64 to int64 conversions.
    	partSizeFlt := float64(objectSize / maxPartsCount)
    	partSizeFlt = math.Ceil(partSizeFlt/float64(configuredPartSize)) * float64(configuredPartSize)
    
    	// Part size.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Apr 21 11:43:18 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/conversions.go

    		ok = constConvertibleTo(T, &x.val)
    		// A conversion from an integer constant to an integer type
    		// can only fail if there's overflow. Give a concise error.
    		// (go.dev/issue/63563)
    		if !ok && isInteger(x.typ) && isInteger(T) {
    			check.errorf(x, InvalidConversion, "constant %s overflows %s", x.val, T)
    			x.mode = invalid
    			return
    		}
    	case constArg && isTypeParam(T):
    		// x is convertible to T if it is convertible
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/convert_type.cc

      shape->reserve(input_shape.dim_size());
      auto& dims = input_shape.dim();
      for (auto& d : dims) {
        if (d.size() > std::numeric_limits<int64_t>::max()) {
          return errors::InvalidArgument("Shape element overflows");
        }
        shape->push_back(d.size() == kTFDynamicSize ? ShapedType::kDynamic
                                                    : d.size());
      }
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  8. src/compress/lzw/writer.go

    	order Order
    	write func(*Writer, uint32) error
    	nBits uint
    	width uint
    	bits  uint32
    	// hi is the code implied by the next code emission.
    	// overflow is the code at which hi overflows the code width.
    	hi, overflow uint32
    	// savedCode is the accumulated code at the end of the most recent Write
    	// call. It is equal to invalidCode if there was no such call.
    	savedCode uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr.go

    // than int32.
    // Deprecated: use FromInt32 instead.
    func FromInt(val int) IntOrString {
    	if val > math.MaxInt32 || val < math.MinInt32 {
    		klog.Errorf("value: %d overflows int32\n%s\n", val, debug.Stack())
    	}
    	return IntOrString{Type: Int, IntVal: int32(val)}
    }
    
    // FromInt32 creates an IntOrString object with an int32 value.
    func FromInt32(val int32) IntOrString {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/utils/string_utils.cc

      // If `data_.size() + len` is greater than `SIZE_MAX` then the left hand side
      // will overflow to something less than max_length_. After checking `len <=
      // max_length_` we can use this subtraction to check for overflow.
      if (len > max_length_ || data_.size() >= max_length_ - len)
        return absl::ResourceExhaustedError("Buffer overflow");
      data_.resize(data_.size() + len);
      memcpy(data_.data() + offset_.back(), str, len);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top