Skip to content

Commit

Permalink
mruby-time: mrb_time_type should be const
Browse files Browse the repository at this point in the history
  • Loading branch information
cremno committed Mar 5, 2014
1 parent f9c88e9 commit 333840b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mrbgems/mruby-time/src/time.c
Expand Up @@ -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. */
Expand Down

0 comments on commit 333840b

Please sign in to comment.