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
a7127550
Unverified
Commit
a7127550
authored
Mar 05, 2021
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
Mar 05, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5372 from shuujii/fix-load-64-bit-integer-from-mrb-format
Fix load 64-bit integer from mrb format; fix #5369
parents
25f60463
cb10469d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/load.c
src/load.c
+2
-1
No files found.
src/load.c
View file @
a7127550
...
...
@@ -153,6 +153,7 @@ read_irep_record_1(mrb_state *mrb, const uint8_t *bin, size_t *len, uint8_t flag
i64
<<=
32
;
i64
|=
bin_to_uint32
(
src
);
src
+=
sizeof
(
uint32_t
);
pool
[
i
].
tt
=
tt
;
pool
[
i
].
u
.
i64
=
(
int64_t
)
i64
;
}
break
;
...
...
@@ -163,7 +164,7 @@ read_irep_record_1(mrb_state *mrb, const uint8_t *bin, size_t *len, uint8_t flag
case
IREP_TT_FLOAT
:
#ifndef MRB_NO_FLOAT
pool
[
i
].
tt
=
tt
;
pool
[
i
].
u
.
f
=
str_to_double
(
mrb
,
(
const
char
*
)
src
);
pool
[
i
].
u
.
f
=
str_to_double
(
mrb
,
(
const
char
*
)
src
);
src
+=
sizeof
(
double
);
break
;
#else
...
...
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