Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
retro8
Commits
2c02a37b
Commit
2c02a37b
authored
Mar 11, 2022
by
phcoder
Browse files
Fix memset
parent
1e3b2316
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/vm/lua_bridge.cpp
View file @
2c02a37b
...
@@ -844,7 +844,7 @@ namespace platform
...
@@ -844,7 +844,7 @@ namespace platform
int32_t
length
=
lua_tonumber
(
L
,
3
);
int32_t
length
=
lua_tonumber
(
L
,
3
);
if
(
length
>
0
)
if
(
length
>
0
)
std
::
memset
(
machine
->
memory
().
base
()
+
addr
,
0
,
length
);
std
::
memset
(
machine
->
memory
().
base
()
+
addr
,
value
,
length
);
return
0
;
return
0
;
}
}
...
...
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