projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix signed int/long truncation on 32-bit architectures
[fio.git]
/
filesetup.c
diff --git
a/filesetup.c
b/filesetup.c
index 2b690c8930d91cc39eeac8e4fb8a845409c96a86..1350857ffb04d9f4ed1274298675f9a94adf44a8 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-208,7
+208,7
@@
static int pre_read_file(struct thread_data *td, struct fio_file *f)
static unsigned long long get_rand_file_size(struct thread_data *td)
{
unsigned long long ret, sized;
static unsigned long long get_rand_file_size(struct thread_data *td)
{
unsigned long long ret, sized;
- long r;
+
unsigned
long r;
if (td->o.use_os_rand) {
r = os_random_long(&td->file_size_state);
if (td->o.use_os_rand) {
r = os_random_long(&td->file_size_state);