projects
/
graphviz
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f53626
)
sfio sfsync: realign 'pool' type with its use
author
Matthew Fernandez
<matthew.fernandez@gmail.com>
Fri, 7 Oct 2022 03:13:09 +0000
(20:13 -0700)
committer
Matthew Fernandez
<matthew.fernandez@gmail.com>
Tue, 11 Oct 2022 03:33:01 +0000
(20:33 -0700)
Squashes a -Wsign-conversion warning.
lib/sfio/sfsync.c
patch
|
blob
|
history
diff --git
a/lib/sfio/sfsync.c
b/lib/sfio/sfsync.c
index 6902ddc85a0aa0e4388406f5af7ce98691fc536b..d0481254229c54c5454f798684c0bed2f4269ad3 100644
(file)
--- a/
lib/sfio/sfsync.c
+++ b/
lib/sfio/sfsync.c
@@
-105,7
+105,7
@@
int sfsync(Sfio_t * f)
goto next;
if ((f->mode & SF_WRITE) && (f->next > f->data || (f->bits & SF_HOLE))) { /* sync the buffer, make sure pool don't move */
-
int
pool = f->mode & SF_POOL;
+
unsigned
pool = f->mode & SF_POOL;
f->mode &= ~SF_POOL;
if (f->next > f->data && (SFWRALL(f), SFFLSBUF(f, -1)) < 0)
rv = -1;