Permalink
Browse files

Fix incorrect usage of rb_define_const (thanks evanphx)

  • Loading branch information...
tmm1 authored and toland committed Jun 17, 2010
1 parent e475ab2 commit 625f91594de0814dec7950779c4e0251ae10d73d
Showing with 3 additions and 3 deletions.
  1. +3 −3 ext/patron/session_ext.c
View
@@ -438,8 +438,8 @@ void Init_session_ext() {
rb_define_method(cSession, "handle_request", session_handle_request, 1);
rb_define_method(cSession, "enable_cookie_session", enable_cookie_session, 1);
- rb_define_const(cRequest, "AuthBasic", CURLAUTH_BASIC);
- rb_define_const(cRequest, "AuthDigest", CURLAUTH_DIGEST);
- rb_define_const(cRequest, "AuthAny", CURLAUTH_ANY);
+ rb_define_const(cRequest, "AuthBasic", INT2FIX(CURLAUTH_BASIC));
+ rb_define_const(cRequest, "AuthDigest", INT2FIX(CURLAUTH_DIGEST));
+ rb_define_const(cRequest, "AuthAny", INT2FIX(CURLAUTH_ANY));
}

0 comments on commit 625f915

Please sign in to comment.