ext/cproton/cproton.c in qpid_proton-0.21.0 vs ext/cproton/cproton.c in qpid_proton-0.22.0
- old
+ new
@@ -19327,11 +19327,11 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_decimal32", 1, argv[0] ));
}
arg1 = (pn_data_t *)(argp1);
{
- arg2 = FIX2UINT(argv[1]);
+ arg2 = NUM2UINT(argv[1]);
}
result = (int)pn_data_put_decimal32(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
@@ -20042,11 +20042,11 @@
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_decimal32", 1, argv[0] ));
}
arg1 = (pn_data_t *)(argp1);
result = (pn_decimal32_t)pn_data_get_decimal32(arg1);
{
- vresult = ULL2NUM(result);
+ vresult = UINT2NUM(result);
}
return vresult;
fail:
return Qnil;
}
@@ -23709,10 +23709,10 @@
rb_define_module_function(mCproton, "pni_connection_driver_transport", _wrap_pni_connection_driver_transport, -1);
rb_define_module_function(mCproton, "pni_connection_driver_read_copy", _wrap_pni_connection_driver_read_copy, -1);
rb_define_module_function(mCproton, "pni_connection_driver", _wrap_pni_connection_driver, -1);
rb_define_const(mCproton, "PROTON_IMPORT_EXPORT_H", SWIG_From_int((int)(1)));
rb_define_const(mCproton, "PN_VERSION_MAJOR", SWIG_From_int((int)(0)));
- rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(21)));
+ rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(22)));
rb_define_const(mCproton, "PN_VERSION_POINT", SWIG_From_int((int)(0)));
rb_define_const(mCproton, "PROTON_TYPES_H", SWIG_From_int((int)(1)));
rb_define_const(mCproton, "PN_MILLIS_MAX", SWIG_From_unsigned_SS_int((unsigned int)((~0U))));
rb_define_module_function(mCproton, "pn_bytes", _wrap_pn_bytes, -1);
rb_define_singleton_method(mCproton, "pn_bytes_null", _wrap_pn_bytes_null_get, 0);