Commit ebb9ba17 authored by Philip Carns's avatar Philip Carns

fix another sizeof bug

parent 8bb4890f
......@@ -229,7 +229,7 @@ static void stdio_cleanup_runtime();
#define STDIO_RECORD_WRITE(__fp, __bytes, __tm1, __tm2, __fflush_flag) do{ \
struct stdio_file_record_ref* rec_ref; \
int64_t this_offset; \
rec_ref = darshan_lookup_record_ref(stdio_runtime->stream_hash, &(__fp), sizeof(int)); \
rec_ref = darshan_lookup_record_ref(stdio_runtime->stream_hash, &(__fp), sizeof(__fp)); \
if(!rec_ref) break; \
this_offset = rec_ref->offset; \
rec_ref->offset = this_offset + __bytes; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment