Skip to content

Commit

Permalink
no cast Mat data ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Mar 1, 2023
1 parent 4a5c944 commit a0554cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion genpp.pl
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,11 @@ sub isempty {
sub dataptr {
my ($self, $compmode) = @_;
'('.(!$compmode ? "\$P($self->{name})" :
($self->{type} eq 'Mat' ? "" :
"(@{[
$self->{fixeddims} ? $DIMTYPES{$self->{type_nostar}}[0][0] :
$self->{is_vector} ? $self->{type_pp} : $self->{type_c}
]}@{[$self->{was_ptr}?'':'*']})$self->{name}->data"
]}@{[$self->{was_ptr}?'':'*']})") . "$self->{name}->data"
).')';
}
sub c_input {
Expand Down

0 comments on commit a0554cc

Please sign in to comment.