Skip to content
Sign up
Product
Features
Mobile
Actions
Codespaces
Copilot
Packages
Security
Code review
Issues
Integrations
GitHub Sponsors
Customer stories
Team
Enterprise
Explore
Explore GitHub
Learn and contribute
Topics
Collections
Trending
Skills
GitHub Sponsors
Open source guides
Connect with others
The ReadME Project
Events
Community forum
GitHub Education
GitHub Stars program
Marketplace
Pricing
Plans
Compare plans
Contact Sales
Education
In this repository
All GitHub
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub
↵
Jump to
↵
In this organization
All GitHub
↵
Jump to
↵
In this repository
All GitHub
↵
Jump to
↵
Sign in
Sign up
{{ message }}
mruby
/
mruby
Public
Notifications
Fork
745
Star
5k
Code
Issues
105
Pull requests
29
Discussions
Actions
Projects
0
Wiki
Security
Insights
More
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security
Insights
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixed wrong condition in new_sym() that breaks symbol data.
Loading branch information
matz
committed
Dec 12, 2016
1 parent
a4ae22a
commit
647ad29a7a1147e2c3ed93329cabbb974482697f
Showing
1 changed file
with
2 additions
and
1 deletion
.
Split
Unified
There are no files selected for viewing
3
mrbgems/mruby-compiler/core/codegen.c
Show comments
View file
Edit file
Delete file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
@@ -537,7 +537,8 @@ new_sym(codegen_scope *s, mrb_sym sym)
if
(s->
irep
->
slen
== MAXSYMLEN) {
codegen_error
(s,
"
too many symbols (max
"
MRB_STRINGIZE
(MAXSYMLEN)
"
)
"
);
}
if
(s->
scapa
== MAXMSYMLEN) {
if
(s->
irep
->
slen
> MAXMSYMLEN/
2
&& s->
scapa
== MAXMSYMLEN) {
s->
scapa
= MAXSYMLEN;
s->
irep
->
syms
= (mrb_sym *)
codegen_realloc
(s, s->
irep
->
syms
,
sizeof
(mrb_sym)*MAXSYMLEN);
for
(i = s->
irep
->
slen
; i < MAXMSYMLEN; i++) {
Toggle all file notes
Toggle all file annotations
0 comments on commit
647ad29
Please
sign in
to comment.
You can’t perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.