Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for uintKind (0.12 sec)

  1. src/text/template/funcs.go

    		truth := false
    		if k1 != k2 {
    			// Special case: Can compare integer values regardless of type's sign.
    			switch {
    			case k1 == intKind && k2 == uintKind:
    				truth = arg1.Int() >= 0 && uint64(arg1.Int()) == arg.Uint()
    			case k1 == uintKind && k2 == intKind:
    				truth = arg.Int() >= 0 && arg1.Uint() == uint64(arg.Int())
    			default:
    				if arg1.IsValid() && arg.IsValid() {
    					return false, errBadComparison
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 20.9K bytes
    - Viewed (0)
Back to top