Skip to content

Commit

Permalink
Ring input
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasguts committed Jun 11, 2019
1 parent ea15f7a commit 9a8014d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libsingular/caller.jl
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ function prepare_argument(x::Any)
new_ptr = n_Copy(ptr,rng.ptr)
return Any[ mapping_types_reversed[:NUMBER_CMD], new_ptr.cpp_object ], nothing
elseif x.ptr isa ring
new_ptr = get_ring_ref(x)
return Any[ mapping_types_reversed[:RING_CMD], new_ptr.cpp_object ], x
new_ptr = get_ring_ref(x.ptr)
return Any[ mapping_types_reversed[:RING_CMD], new_ptr ], x
elseif x.ptr isa poly
rng = parent(x)
rng_ptr = nothing
Expand Down

0 comments on commit 9a8014d

Please sign in to comment.