native,cgo: replace string literal in Dlasrt with string const

This commit is contained in:
Vladimir Chalupecky
2016-11-30 12:01:45 +01:00
parent 2fbe0d0651
commit fd815ff6d3
3 changed files with 4 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ func (impl Implementation) Dlasrt(s lapack.Sort, n int, d []float64) {
d = d[:n]
switch s {
default:
panic("lapack: bad sort")
panic(badSort)
case lapack.SortIncreasing:
sort.Float64s(d)
case lapack.SortDecreasing: