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
a7c8575f
Unverified
Commit
a7c8575f
authored
May 11, 2018
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
May 11, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4023 from iwamatsu/fix-upstream
Fix test of mruby-pack with big-endian CPUs
parents
bda88bdb
0759647f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mrbgems/mruby-pack/test/pack.rb
mrbgems/mruby-pack/test/pack.rb
+2
-2
No files found.
mrbgems/mruby-pack/test/pack.rb
View file @
a7c8575f
...
...
@@ -129,7 +129,7 @@ assert 'pack/unpack "i"' do
if
PACK_IS_LITTLE_ENDIAN
str
=
"
\xC7\xCF
"
+
"
\xFF
"
*
(
int_size
-
2
)
else
str
=
"
\xFF
"
*
(
int_size
-
2
)
+
"
\xC
7\xCF
"
str
=
"
\xFF
"
*
(
int_size
-
2
)
+
"
\xC
F\xC7
"
end
assert_pack
'i'
,
str
,
[
-
12345
]
end
...
...
@@ -141,7 +141,7 @@ assert 'pack/unpack "I"' do
if
PACK_IS_LITTLE_ENDIAN
str
=
"
\x39\x30
"
+
"
\0
"
*
(
uint_size
-
2
)
else
str
=
"
\0
"
*
(
uint_size
-
2
)
+
"
\x3
9\x30
"
str
=
"
\0
"
*
(
uint_size
-
2
)
+
"
\x3
0\x39
"
end
assert_pack
'I'
,
str
,
[
12345
]
end
...
...
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