Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
d0ced41f
Commit
d0ced41f
authored
Aug 26, 2014
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2563 from cremno/printf-cast-variables-to-expected-type
printf: cast variables to the expected type
parents
3979dd02
bdf6ce34
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/codegen.c
src/codegen.c
+1
-1
src/parse.y
src/parse.y
+1
-1
No files found.
src/codegen.c
View file @
d0ced41f
...
...
@@ -2715,7 +2715,7 @@ codedump(mrb_state *mrb, mrb_irep *irep)
int32_t
line
;
if
(
!
irep
)
return
;
printf
(
"irep %p nregs=%d nlocals=%d pools=%d syms=%d reps=%d
\n
"
,
irep
,
printf
(
"irep %p nregs=%d nlocals=%d pools=%d syms=%d reps=%d
\n
"
,
(
void
*
)
irep
,
irep
->
nregs
,
irep
->
nlocals
,
(
int
)
irep
->
plen
,
(
int
)
irep
->
slen
,
(
int
)
irep
->
rlen
);
for
(
i
=
0
;
i
<
(
int
)
irep
->
ilen
;
i
++
)
{
...
...
src/parse.y
View file @
d0ced41f
...
...
@@ -6366,7 +6366,7 @@ mrb_parser_dump(mrb_state *mrb, node *tree, int offset)
break;
default:
printf("node type: %d (0x%x)\n",
(int)n, (int
)n);
printf("node type: %d (0x%x)\n",
n, (unsigned
)n);
break;
}
#endif
...
...
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