mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
date_core.c: revert const
* ext/date/date_core.c (SimpleDateData, ComplexDateData): revert const for aggregation assignments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cedc0d1f6e
commit
b5de461a49
1 changed files with 3 additions and 3 deletions
|
@ -235,7 +235,7 @@ f_negative_p(VALUE x)
|
||||||
struct SimpleDateData
|
struct SimpleDateData
|
||||||
{
|
{
|
||||||
unsigned flags;
|
unsigned flags;
|
||||||
const VALUE nth; /* not always canonicalized */
|
VALUE nth; /* not always canonicalized */
|
||||||
int jd; /* as utc */
|
int jd; /* as utc */
|
||||||
/* df is zero */
|
/* df is zero */
|
||||||
/* sf is zero */
|
/* sf is zero */
|
||||||
|
@ -258,10 +258,10 @@ struct SimpleDateData
|
||||||
struct ComplexDateData
|
struct ComplexDateData
|
||||||
{
|
{
|
||||||
unsigned flags;
|
unsigned flags;
|
||||||
const VALUE nth; /* not always canonicalized */
|
VALUE nth; /* not always canonicalized */
|
||||||
int jd; /* as utc */
|
int jd; /* as utc */
|
||||||
int df; /* as utc, in secs */
|
int df; /* as utc, in secs */
|
||||||
const VALUE sf; /* in nano secs */
|
VALUE sf; /* in nano secs */
|
||||||
int of; /* in secs */
|
int of; /* in secs */
|
||||||
date_sg_t sg; /* 2298874..2426355 or -/+oo -- at most 22 bits */
|
date_sg_t sg; /* 2298874..2426355 or -/+oo -- at most 22 bits */
|
||||||
/* decoded as local */
|
/* decoded as local */
|
||||||
|
|
Loading…
Reference in a new issue