Skip to content

Commit

Permalink
Merge pull request #161 from thofma/jk
Browse files Browse the repository at this point in the history
Add patch from JKieffer95 and a test for it
  • Loading branch information
wbhart authored Apr 20, 2017
2 parents ba47bfc + 2e0fb90 commit c501ab9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/flint/fq_nmod_abs_series.jl
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function *(x::fq_nmod, y::fq_nmod_abs_series)
z.prec = y.prec
ccall((:fq_nmod_poly_scalar_mul_fq_nmod, :libflint), Void,
(Ptr{fq_nmod_abs_series}, Ptr{fq_nmod_abs_series}, Ptr{fq_nmod}, Ptr{FqNmodFiniteField}),
&z, &y, &x, &base_ring(x))
&z, &y, &x, &parent(x))
return z
end

Expand Down
5 changes: 5 additions & 0 deletions test/flint/fq_nmod_abs_series-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ function test_fq_nmod_abs_series_adhoc_binary_ops()

@test d*ZZ(3) == 3x^2 + 9x^3 - 3x^4

F, x = FiniteField(23, 1, "x")
R, t = PowerSeriesRing(F, 6, "t", model=:capped_absolute)

@test F(1) * t == t

println("PASS")
end

Expand Down

0 comments on commit c501ab9

Please sign in to comment.