1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix of ext/date/date_core.

* ext/date/date_core.c (DateTimeData): should not use bare 'long long'
  and 'long double', which are not defined by C89.

* ext/date/date_core.c (dt_lite_plus): get rid of overflow at casting
  down double to integer.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-03-06 23:38:31 +00:00
parent 29246c34eb
commit 35c9d383a9
2 changed files with 17 additions and 29 deletions

View file

@ -1,4 +1,2 @@
require 'mkmf'
have_func('floorl', 'math.h')
have_func('roundl', 'math.h')
create_makefile('date_core')