parse: fix void * pointer math complaint
[fio.git] / parse.h
diff --git a/parse.h b/parse.h
index d852ddc9292391e02e1239a5afbfedf14265589b..7ba4e37b984bd46b17092acbc0c03d120f0c1f57 100644 (file)
--- a/parse.h
+++ b/parse.h
@@ -116,7 +116,7 @@ static inline void *td_var(struct thread_options *to, struct fio_option *o,
        else
                ret = to;
 
-       return ret + offset;
+       return (char *) ret + offset;
 }
 
 static inline int parse_is_percent(unsigned long long val)