OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
869629d
)
[Refactor] #37353 fd_chop() を微修正 / Adjusted fd_chop() a little
author
Hourier
<hourier@users.sourceforge.jp>
Fri, 14 Feb 2020 12:15:24 +0000
(21:15 +0900)
committer
Hourier
<hourier@users.sourceforge.jp>
Fri, 14 Feb 2020 12:15:24 +0000
(21:15 +0900)
src/util.c
patch
|
blob
|
history
diff --git
a/src/util.c
b/src/util.c
index
c43e907
..
2c5cc80
100644
(file)
--- a/
src/util.c
+++ b/
src/util.c
@@
-658,9
+658,7
@@
errr fd_seek(int fd, huge n)
errr fd_chop(int fd, huge n)
{
n = n ? n : 0;
- if (fd < 0) return -1;
-
- return 0;
+ return fd >= 0 ? 0 : -1;
}