aboutsummaryrefslogtreecommitdiff
path: root/fesvr/htif.h
diff options
context:
space:
mode:
Diffstat (limited to 'fesvr/htif.h')
-rw-r--r--fesvr/htif.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/fesvr/htif.h b/fesvr/htif.h
index 5767e31..f63ff1c 100644
--- a/fesvr/htif.h
+++ b/fesvr/htif.h
@@ -31,18 +31,18 @@ class htif_t : public chunked_memif_t
template<typename T> inline T from_target(target_endian<T> n) const
{
- memif_endianness_t endianness = get_target_endianness();
- assert(endianness == memif_endianness_little || endianness == memif_endianness_big);
+ endianness_t endianness = get_target_endianness();
+ assert(endianness == endianness_little || endianness == endianness_big);
- return endianness == memif_endianness_big? n.from_be() : n.from_le();
+ return endianness == endianness_big? n.from_be() : n.from_le();
}
template<typename T> inline target_endian<T> to_target(T n) const
{
- memif_endianness_t endianness = get_target_endianness();
- assert(endianness == memif_endianness_little || endianness == memif_endianness_big);
+ endianness_t endianness = get_target_endianness();
+ assert(endianness == endianness_little || endianness == endianness_big);
- return endianness == memif_endianness_big? target_endian<T>::to_be(n) : target_endian<T>::to_le(n);
+ return endianness == endianness_big? target_endian<T>::to_be(n) : target_endian<T>::to_le(n);
}
protected: