From 3c129b7c5bad1febceab0692f8a9bb1d7f6fc6b6 Mon Sep 17 00:00:00 2001 From: Jeff Bezanson Date: Sat, 26 Jul 2014 17:16:04 -0400 Subject: [PATCH] update perf tests for removed deprecations --- test/perf/kernel/go_benchmark.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/perf/kernel/go_benchmark.jl b/test/perf/kernel/go_benchmark.jl index 4c176a338ee5d..45bb749c33325 100644 --- a/test/perf/kernel/go_benchmark.jl +++ b/test/perf/kernel/go_benchmark.jl @@ -1,7 +1,7 @@ # Benchmark implementing the board logic for the game of go and # exercising it by playing random games. Derived from # http://www.lysator.liu.se/~gunnar/gtp/brown-1.0.tar.gz -import Base.ref +import Base.getindex const EMPTY = 0 const WHITE = 1 @@ -79,8 +79,8 @@ function init(board::Board, n::Int, seed::Uint32) board end -ref(board::Board, pos::Int) = board.board[pos] -ref(board::Board, i::Int, j::Int) = board.board[i, j] +getindex(board::Board, pos::Int) = board.board[pos] +getindex(board::Board, i::Int, j::Int) = board.board[i, j] # Functions to convert between 1D and 2D coordinates. The 2D coordinate # (i, j) points to row i and column j, starting with (1,1) in the