summaryrefslogtreecommitdiffhomepage
path: root/src/time.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-10-16 20:54:16 +0900
committerYukihiro Matsumoto <[email protected]>2012-10-16 20:54:16 +0900
commite7ff2bf72e172f7a4a30812d7f77323a48e799d3 (patch)
tree4fb833187300af8a66745cf3ed7887aa10e85970 /src/time.c
parent76f28241f1a6eb76070d470779fc17d43ca838e3 (diff)
parent019fd70f1b8ca08aea35e08ff0078cc4a7654f8a (diff)
downloadmruby-e7ff2bf72e172f7a4a30812d7f77323a48e799d3.tar.gz
mruby-e7ff2bf72e172f7a4a30812d7f77323a48e799d3.zip
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'src/time.c')
-rw-r--r--src/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time.c b/src/time.c
index ea8205c7b..09ebea78a 100644
--- a/src/time.c
+++ b/src/time.c
@@ -559,7 +559,7 @@ mrb_time_initialize_copy(mrb_state *mrb, mrb_value copy)
DATA_PTR(copy) = mrb_malloc(mrb, sizeof(struct mrb_time));
DATA_TYPE(copy) = &mrb_time_type;
}
- memcpy(DATA_PTR(copy), DATA_PTR(src), sizeof(struct mrb_time));
+ *(struct mrb_time *)DATA_PTR(copy) = *(struct mrb_time *)DATA_PTR(src);
return copy;
}