TORONTO: Don Nelson equalled Lenny Wilkens for the most victories by a National Basketball Association coach in the Golden State Warriors' 113-112 win over the Toronto Raptors.

The win was the 1,332nd for Nelson, who can pass Wilkens when Golden State plays at Washington on Tuesday.

Toronto's Chris Bosh stole an inbounds pass and had a chance to win it but his layup attempt rolled off the rim as time expired.

"What a game to tie the record," Nelson said. "Unbelievable. It had about everything you'd want, from good to bad to playing great to wetting the bed, and we did about all of it. Somehow we prevailed."

Stephen Curry had 29 points and 12 assists, and Corey Maggette scored 31 points for the Warriors, who won consecutive games for the first time since early January.

Anthony Morrow had 25 points and 10 rebounds, and Anthony Tolliver fouled out with 12 points for the Warriors.

Bosh had 42 points and 12 rebounds for the Raptors, who lost for the first time in four games.