Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
a3f7796d
Commit
a3f7796d
authored
Jan 21, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#8070
corrected possible unalignment in NdbRecAttr access methods
parent
f813e0da
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
ndb/include/ndbapi/NdbRecAttr.hpp
ndb/include/ndbapi/NdbRecAttr.hpp
+12
-4
No files found.
ndb/include/ndbapi/NdbRecAttr.hpp
View file @
a3f7796d
...
...
@@ -304,7 +304,9 @@ inline
Int64
NdbRecAttr
::
int64_value
()
const
{
return
*
(
Int64
*
)
theRef
;
Int64
val
;
memcpy
(
&
val
,
theRef
,
8
);
return
val
;
}
inline
...
...
@@ -332,7 +334,9 @@ inline
Uint64
NdbRecAttr
::
u_64_value
()
const
{
return
*
(
Uint64
*
)
theRef
;
Uint64
val
;
memcpy
(
&
val
,
theRef
,
8
);
return
val
;
}
inline
...
...
@@ -360,14 +364,18 @@ inline
float
NdbRecAttr
::
float_value
()
const
{
return
*
(
float
*
)
theRef
;
float
val
;
memcpy
(
&
val
,
theRef
,
sizeof
(
val
));
return
val
;
}
inline
double
NdbRecAttr
::
double_value
()
const
{
return
*
(
double
*
)
theRef
;
double
val
;
memcpy
(
&
val
,
theRef
,
sizeof
(
val
));
return
val
;
}
inline
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment