mruby-time: mrb_time_type should be const

This commit is contained in:
cremno
2014-03-04 18:34:04 +01:00
parent f9c88e9c68
commit 333840ba61
+1 -1
View File
@@ -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. */