Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
c374b7df
Commit
c374b7df
authored
Mar 03, 2015
by
zeroday
Browse files
Merge pull request #247 from Ezekiel-DA/dev
Fix file.seek() return value (@Ezekiel-DA)
parents
9add31e2
c869eddb
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/file.c
View file @
c374b7df
...
...
@@ -111,7 +111,7 @@ static int file_seek (lua_State *L)
long
offset
=
luaL_optlong
(
L
,
2
,
0
);
op
=
fs_seek
(
file_fd
,
offset
,
mode
[
op
]);
if
(
op
)
lua_push
boolean
(
L
,
1
);
/* error */
lua_push
nil
(
L
);
/* error */
else
lua_pushinteger
(
L
,
fs_tell
(
file_fd
));
return
1
;
...
...
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