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

@@ -37,6 +37,7 @@ const (
badShifts = "lapack: bad shifts"
badSide = "lapack: bad side"
badSlice = "lapack: bad input slice length"
badSort = "lapack: bad Sort"
badStore = "lapack: bad store"
badTau = "lapack: tau has insufficient length"
badTauQ = "lapack: tauQ has insufficient length"
@@ -462,7 +463,7 @@ func (impl Implementation) Dlasrt(s lapack.Sort, n int, d []float64) {
checkVector(n, d, 1)
switch s {
default:
panic("lapack: bad sort")
panic(badSort)
case lapack.SortIncreasing, lapack.SortDecreasing:
}
lapacke.Dlasrt(byte(s), n, d[:n])