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
fed285d1
Commit
fed285d1
authored
Oct 22, 2012
by
Masaki Muranaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use MRB_DUMP_SIZE_OF_CHAR instead of sizeof(char).
parent
0debca9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
include/mruby/dump.h
include/mruby/dump.h
+1
-0
src/dump.c
src/dump.c
+1
-1
No files found.
include/mruby/dump.h
View file @
fed285d1
...
...
@@ -41,6 +41,7 @@ int mrb_bdump_irep(mrb_state *mrb, int n, FILE *f,const char *initname);
#define MRB_DUMP_SIZE_OF_LONG 4
#define MRB_DUMP_SIZE_OF_INT 4
#define MRB_DUMP_SIZE_OF_SHORT 2
#define MRB_DUMP_SIZE_OF_CHAR 1
/* null symbol length */
#define MRB_DUMP_NULL_SYM_LEN 0xFFFF
...
...
src/dump.c
View file @
fed285d1
...
...
@@ -84,7 +84,7 @@ uint8_dump(unsigned char bin, char *hex, int type)
*
hex
++
=
bin2hex
[(
bin
>>
4
)
&
0x0f
];
*
hex
=
bin2hex
[
bin
&
0x0f
];
}
return
DUMP_SIZE
(
sizeof
(
char
)
,
type
);
return
DUMP_SIZE
(
MRB_DUMP_SIZE_OF_CHAR
,
type
);
}
static
inline
int
...
...
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