mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-20 06:00:58 +00:00
Simplify and avoid a shift size warning.
This commit is contained in:
parent
ddc2c15ce8
commit
04b636e889
@ -23,6 +23,11 @@ template <typename T> void BigEndianWriteBuf(u8* buf, T x, int &pos)
|
||||
pos += k;
|
||||
}
|
||||
|
||||
template <> void BigEndianWriteBuf<u8>(u8* buf, u8 x, int &pos)
|
||||
{
|
||||
buf[pos++] = x;
|
||||
}
|
||||
|
||||
template <typename T> inline T getBufValue(T* buf, int offsetbytes)
|
||||
{
|
||||
return *(T*)(((u8*)buf) + offsetbytes);
|
||||
|
Loading…
x
Reference in New Issue
Block a user