aboutsummaryrefslogtreecommitdiff
path: root/lib/http/range_position_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/http/range_position_test.go')
-rw-r--r--lib/http/range_position_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/http/range_position_test.go b/lib/http/range_position_test.go
index 8fc2afd4..83f08358 100644
--- a/lib/http/range_position_test.go
+++ b/lib/http/range_position_test.go
@@ -54,14 +54,12 @@ func TestParseContentRange(t *testing.T) {
}
}
-func ptrInt64(v int64) *int64 { return &v }
-
func TestRangePositionContentRange(t *testing.T) {
var (
unit = AcceptRangesBytes
pos = RangePosition{
- start: ptrInt64(10),
- end: ptrInt64(20),
+ start: new(int64(10)),
+ end: new(int64(20)),
}
)