Skip to content

Commit 5f5ba86

Browse files
authored
fix some stray untyped global variables (#523)
1 parent 6f5e5bb commit 5f5ba86

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/common.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ end
10171017

10181018
#=
10191019
arithmetic =#
1020-
Scalar = Union{Number, Matrix}
1020+
const Scalar = Union{Number, Matrix}
10211021

10221022
# scalar operations
10231023
# scalar_add utilized polynomial addition. May be more performant to provide new method

src/polynomials/standard-basis/immutable-polynomial.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ ImmutablePolynomial(1.0)
5050
This was modeled after [StaticUnivariatePolynomials](https://github.com/tkoolen/StaticUnivariatePolynomials.jl) by `@tkoolen`.
5151
5252
"""
53-
ImmutablePolynomial = ImmutableDensePolynomial{StandardBasis}
53+
const ImmutablePolynomial = ImmutableDensePolynomial{StandardBasis}
5454
export ImmutablePolynomial
5555

5656
_typealias(::Type{P}) where {P<:ImmutablePolynomial} = "ImmutablePolynomial"

src/precompiles.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# precompiles
22

3-
p = fromroots(Polynomial, [1,1,2])
4-
Multroot.multroot(p)
5-
gcd(p, derivative(p); method=:numerical)
6-
#uvw(p, derivative(p); method=:numerical)
3+
let p = fromroots(Polynomial, [1,1,2])
4+
Multroot.multroot(p)
5+
gcd(p, derivative(p); method=:numerical)
6+
#uvw(p, derivative(p); method=:numerical)
7+
end

0 commit comments

Comments
 (0)