summaryrefslogtreecommitdiff
path: root/rrdformat/rrdbinary/unmarshal.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2020-01-26 22:30:00 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2020-01-26 22:30:00 -0500
commit72c4b2518a77ee9952a0fa25ae671f06d8d85570 (patch)
treeecf1aabe3c997a22d0ad1c81f4a165c48182d0f7 /rrdformat/rrdbinary/unmarshal.go
parent02003547bc96b3758355f0af0275170da1dba942 (diff)
it compiles
Diffstat (limited to 'rrdformat/rrdbinary/unmarshal.go')
-rw-r--r--rrdformat/rrdbinary/unmarshal.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/rrdformat/rrdbinary/unmarshal.go b/rrdformat/rrdbinary/unmarshal.go
index e0f8988..1cfee34 100644
--- a/rrdformat/rrdbinary/unmarshal.go
+++ b/rrdformat/rrdbinary/unmarshal.go
@@ -29,7 +29,7 @@ type unmarshaler struct {
}
func (d *unmarshaler) binError(ctxLen int, msg string) error {
- return newBinError(msg, d.data, d.pos, ctxLen)
+ return NewBinError(msg, d.data, d.pos, ctxLen)
}
func (d *unmarshaler) binErrorf(ctxLen int, format string, a ...interface{}) error {
@@ -44,7 +44,7 @@ func (d *unmarshaler) unmarshal(v reflect.Value, tag string) error {
return d.unmarshalFloat(v, tag)
case reflect.TypeOf(Uint(0)):
return d.unmarshalUint(v, tag)
- case reflect.TypeOf(_Int(0)):
+ case reflect.TypeOf(Int(0)):
return d.unmarshalInt(v, tag)
case reflect.TypeOf(Unival(0)):
return d.unmarshalUnival(v, tag)
@@ -213,7 +213,7 @@ func (d *unmarshaler) unmarshalUint(v reflect.Value, tag string) error {
}
func (d *unmarshaler) unmarshalInt(v reflect.Value, tag string) error {
- panicUnless(v.Type() == reflect.TypeOf(_Int(0)))
+ panicUnless(v.Type() == reflect.TypeOf(Int(0)))
panicUnless(v.CanSet())
if d.arch.IntWidth != 4 && d.arch.IntWidth != 8 {