Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nerrons
purr-data
Commits
6ba02031
Commit
6ba02031
authored
Aug 13, 2017
by
Jonathan Wilkes
Browse files
use int instead of signed char for comparing loadsym, as absolute paths can exceed 128 characters
parent
2301d98f
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/m_class.c
View file @
6ba02031
...
...
@@ -251,8 +251,8 @@ t_class *class_new(t_symbol *s, t_newmethod newmethod, t_method freemethod,
/* if we're loading an extern it might have been invoked by a
longer file name; in this case, make this an admissible name
too. */
char
*
loadstring
=
class_loadsym
->
s_name
,
l1
=
strlen
(
s
->
s_name
),
l2
=
strlen
(
loadstring
);
char
*
loadstring
=
class_loadsym
->
s_name
;
int
l1
=
strlen
(
s
->
s_name
),
l2
=
strlen
(
loadstring
);
if
(
l2
>
l1
&&
!
strcmp
(
s
->
s_name
,
loadstring
+
(
l2
-
l1
)))
class_addmethod
(
pd_objectmaker
,
(
t_method
)
newmethod
,
class_loadsym
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment