aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange/arch.h
diff options
context:
space:
mode:
Diffstat (limited to 'fpga_interchange/arch.h')
-rw-r--r--fpga_interchange/arch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpga_interchange/arch.h b/fpga_interchange/arch.h
index a14d3096..390af594 100644
--- a/fpga_interchange/arch.h
+++ b/fpga_interchange/arch.h
@@ -42,7 +42,7 @@ template <typename T> struct RelPtr
const T *get() const
{
- return reinterpret_cast<const T *>(reinterpret_cast<const char *>(this) + int64_t(offset) * 4);
+ return reinterpret_cast<const T *>(reinterpret_cast<const char *>(this) + offset);
}
const T &operator[](size_t index) const { return get()[index]; }