Permalink
Browse files

Minor compile error fixes

  • Loading branch information...
1 parent 3692e16 commit ec888d92193cea6a087a6bead6d69817be46f64d @dbalmain committed Jul 30, 2009
Showing with 2 additions and 2 deletions.
  1. +0 −1 ruby/ext/r_analysis.c
  2. +1 −1 ruby/ext/r_search.c
  3. +1 −0 ruby/test/unit/index/tc_index.rb
View
@@ -773,7 +773,6 @@ rets_next(TokenStream *ts)
{
static struct re_registers regs;
int ret, beg, end;
- struct RString *rtext = RSTRING(RETS(ts)->rtext);
long rtext_len = RSTRING_LEN(RETS(ts)->rtext);
char *rtext_ptr = RSTRING_PTR(RETS(ts)->rtext);
Check_Type(RETS(ts)->regex, T_REGEXP);
View
@@ -207,7 +207,7 @@ frb_td_to_s(int argc, VALUE *argv, VALUE self)
field = frb_field(argv[0]);
}
- sprintf(str, "TopDocs: total_hits = %d, max_score = %f [\n",
+ sprintf(str, "TopDocs: total_hits = %ld, max_score = %f [\n",
FIX2INT(rb_funcall(self, id_total_hits, 0)),
NUM2DBL(rb_funcall(self, id_max_score, 0)));
p = (int)strlen(str);
@@ -659,6 +659,7 @@ def test_auto_flush
n = 1
data.each do |datum|
index1 << {:id => n, :content => datum}
+ index2 << {:id => n, :content => datum}
n += 1
end
5.times do |i|

0 comments on commit ec888d9

Please sign in to comment.