Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BlenderPhi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
raas
BlenderPhi
Commits
78a810d9
Commit
78a810d9
authored
20 years ago
by
Stephen Swaney
Browse files
Options
Downloads
Patches
Plain Diff
fix bad return types for errors in Matrix_coerce().
EXPP_ReturnPyObjError() should have been EXPP_ReturnIntError().
parent
7dda27fc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/blender/python/api2_2x/matrix.c
+4
-4
4 additions, 4 deletions
source/blender/python/api2_2x/matrix.c
with
4 additions
and
4 deletions
source/blender/python/api2_2x/matrix.c
+
4
−
4
View file @
78a810d9
...
...
@@ -850,7 +850,7 @@ int Matrix_coerce( PyObject ** m1, PyObject ** m2 )
tempI
=
PyMem_Malloc
(
1
*
sizeof
(
long
)
);
if
(
tempI
==
NULL
)
{
return
(
EXPP_Return
PyObj
Error
return
(
EXPP_Return
Int
Error
(
PyExc_MemoryError
,
"problem allocating tempI
\n\n
"
)
);
}
...
...
@@ -859,7 +859,7 @@ int Matrix_coerce( PyObject ** m1, PyObject ** m2 )
sizeof
(
float
)
);
if
(
mat
==
NULL
)
{
PyMem_Free
(
tempI
);
return
(
EXPP_Return
PyObj
Error
return
(
EXPP_Return
Int
Error
(
PyExc_MemoryError
,
"problem allocating mat
\n\n
"
)
);
}
...
...
@@ -878,7 +878,7 @@ int Matrix_coerce( PyObject ** m1, PyObject ** m2 )
sizeof
(
double
)
);
if
(
tempF
==
NULL
)
{
return
(
EXPP_Return
PyObj
Error
return
(
EXPP_Return
Int
Error
(
PyExc_MemoryError
,
"problem allocating tempF
\n\n
"
)
);
}
...
...
@@ -887,7 +887,7 @@ int Matrix_coerce( PyObject ** m1, PyObject ** m2 )
sizeof
(
float
)
);
if
(
mat
==
NULL
)
{
PyMem_Free
(
tempF
);
return
(
EXPP_Return
PyObj
Error
return
(
EXPP_Return
Int
Error
(
PyExc_MemoryError
,
"problem allocating mat
\n\n
"
)
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment