From c11799abb120ff5104a9f088858f54e8bfd219f5 Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Tue, 24 Apr 2012 14:57:55 -0400 Subject: [PATCH] possible date fix --- ext/cbson/cbson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/cbson/cbson.c b/ext/cbson/cbson.c index a60423b..60599b2 100644 --- a/ext/cbson/cbson.c +++ b/ext/cbson/cbson.c @@ -742,7 +742,7 @@ static VALUE get_value(const char* buffer, int* position, int type) { } case 9: { - long long millis; + int64_t millis; memcpy(&millis, buffer + *position, 8); value = rb_time_new(millis / 1000, (millis % 1000) * 1000);