mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-time: mrb_time_type should be const
This commit is contained in:
@@ -119,7 +119,7 @@ struct mrb_time {
|
||||
struct tm datetime;
|
||||
};
|
||||
|
||||
static struct mrb_data_type mrb_time_type = { "Time", mrb_free };
|
||||
static const struct mrb_data_type mrb_time_type = { "Time", mrb_free };
|
||||
|
||||
/** Updates the datetime of a mrb_time based on it's timezone and
|
||||
seconds setting. Returns self on success, NULL of failure. */
|
||||
|
||||
Reference in New Issue
Block a user