Skip to content

Commit 64462a3

Browse files
committed
Backed out changeset b9cd19efa510
1 parent 1947b3f commit 64462a3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

liboctave/system/oct-group.cc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,7 @@ group::group (void *p, std::string& msg)
196196

197197
if (p)
198198
{
199-
// struct ::group *gr = static_cast<struct ::group *> (p);
200-
// Ths code assumes memory alignment that is not the case on MacOS.
201-
// Copy struct group to aligned local storage.
202-
struct ::group tmpgr;
203-
std::memcpy (&tmpgr, p, sizeof (tmpgr));
204-
struct ::group *gr = &tmpgr;
199+
struct ::group *gr = static_cast<struct ::group *> (p);
205200

206201
m_name = gr->gr_name;
207202

0 commit comments

Comments
 (0)