aboutsummaryrefslogtreecommitdiff
path: root/go/exact/exact.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/exact/exact.go')
-rw-r--r--go/exact/exact.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/go/exact/exact.go b/go/exact/exact.go
index 06d5918..51c4906 100644
--- a/go/exact/exact.go
+++ b/go/exact/exact.go
@@ -11,7 +11,7 @@
// values produce unknown values unless specified
// otherwise.
//
-package exact
+package exact // import "golang.org/x/tools/go/exact"
import (
"fmt"
@@ -560,14 +560,16 @@ func ord(x Value) int {
switch x.(type) {
default:
return 0
- case int64Val:
+ case boolVal, stringVal:
return 1
- case intVal:
+ case int64Val:
return 2
- case floatVal:
+ case intVal:
return 3
- case complexVal:
+ case floatVal:
return 4
+ case complexVal:
+ return 5
}
}