cue: print hex numbers correctly

Change-Id: I26c023565fbfce982e14e75dda6d7159ea6c0700
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/6461
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
diff --git a/cue/types_test.go b/cue/types_test.go
index e4b7504..4a2c005 100644
--- a/cue/types_test.go
+++ b/cue/types_test.go
@@ -198,11 +198,11 @@
 			inst := getInstance(t, tc.value)
 			v := inst.Lookup("v")
 			if got := v.Kind(); got != tc.kind {
-				t.Errorf("Kind: got %x; want %x", got, tc.kind)
+				t.Errorf("Kind: got %x; want %x", int(got), int(tc.kind))
 			}
 			want := tc.incompleteKind | BottomKind
 			if got := v.IncompleteKind(); got != want {
-				t.Errorf("IncompleteKind: got %x; want %x", got, want)
+				t.Errorf("IncompleteKind: got %x; want %x", int(got), int(want))
 			}
 			if got := v.IsConcrete(); got != tc.concrete {
 				t.Errorf("IsConcrete: got %v; want %v", got, tc.concrete)