summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-05-28 14:33:34 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-05-28 14:34:13 +0200
commit480bb72515bf1bae07a0fcc0a8509d7bc0118ab7 (patch)
tree6789da0ab815d3d34a8cf2d2efca47ab57e4ef8c /include
parent145b64c4eb0a335d4290e998c78ca8280a5004a3 (diff)
Avoid undefined computation of unaligned pointers to multi-byte objects
Change-Id: Iafca1288e044ab4650b004439027c134e159b45f
Diffstat (limited to 'include')
-rw-r--r--include/tools/resmgr.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/tools/resmgr.hxx b/include/tools/resmgr.hxx
index 7a492285b03f..cb5d3a3655f0 100644
--- a/include/tools/resmgr.hxx
+++ b/include/tools/resmgr.hxx
@@ -32,10 +32,10 @@ class InternalResMgr;
struct RSHEADER_TYPE
{
private:
- sal_uInt32 nId; ///< Identifier of resource
- RESOURCE_TYPE nRT; ///< Resource type
- sal_uInt32 nGlobOff; ///< Global offset
- sal_uInt32 nLocalOff; ///< Local offset
+ char nId[4]; ///< Identifier of resource
+ char nRT[4]; ///< Resource type
+ char nGlobOff[4]; ///< Global offset
+ char nLocalOff[4]; ///< Local offset
public:
inline sal_uInt32 GetId(); ///< Identifier of resource