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
3eb225e9
Commit
3eb225e9
authored
Jan 14, 2018
by
Albert Gräf
Browse files
Fix glitch in dollar symbol comparison in binbuf_match (#404).
parent
c6485c39
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/m_binbuf.c
View file @
3eb225e9
...
...
@@ -1625,12 +1625,18 @@ int binbuf_match(t_binbuf *inbuf, t_binbuf *searchbuf, int wholeword)
if
(
a2
->
a_type
!=
a1
->
a_type
)
goto
nomatch
;
}
else
if
(
a1
->
a_type
==
A_FLOAT
||
a1
->
a_type
==
A_DOLLAR
)
else
if
(
a1
->
a_type
==
A_FLOAT
)
{
if
(
a2
->
a_type
!=
a1
->
a_type
||
a1
->
a_w
.
w_float
!=
a2
->
a_w
.
w_float
)
goto
nomatch
;
}
else
if
(
a1
->
a_type
==
A_DOLLAR
)
{
if
(
a2
->
a_type
!=
a1
->
a_type
||
a1
->
a_w
.
w_index
!=
a2
->
a_w
.
w_index
)
goto
nomatch
;
}
else
if
(
a1
->
a_type
==
A_SYMBOL
||
a1
->
a_type
==
A_DOLLSYM
)
{
if
((
a2
->
a_type
!=
A_SYMBOL
&&
a2
->
a_type
!=
A_DOLLSYM
)
...
...
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