ext/duckdb/appender.c in duckdb-0.2.6.0 vs ext/duckdb/appender.c in duckdb-0.2.6.1

- old
+ new

@@ -110,11 +110,11 @@ return self; } static VALUE appender_append_int16(VALUE self, VALUE val) { rubyDuckDBAppender *ctx; - int16_t i16val = NUM2INT(val); + int16_t i16val = (int16_t)NUM2INT(val); Data_Get_Struct(self, rubyDuckDBAppender, ctx); if (duckdb_append_int16(ctx->appender, i16val) == DuckDBError) { rb_raise(eDuckDBError, "failed to append"); @@ -134,11 +134,11 @@ return self; } static VALUE appender_append_int64(VALUE self, VALUE val) { rubyDuckDBAppender *ctx; - int64_t i64val = NUM2LL(val); + int64_t i64val = (int64_t)NUM2LL(val); Data_Get_Struct(self, rubyDuckDBAppender, ctx); if (duckdb_append_int64(ctx->appender, i64val) == DuckDBError) { rb_raise(eDuckDBError, "failed to append"); @@ -182,10 +182,10 @@ return self; } static VALUE appender_append_uint64(VALUE self, VALUE val) { rubyDuckDBAppender *ctx; - uint64_t ui64val = (int64_t)NUM2ULL(val); + uint64_t ui64val = (uint64_t)NUM2ULL(val); Data_Get_Struct(self, rubyDuckDBAppender, ctx); if (duckdb_append_uint64(ctx->appender, ui64val) == DuckDBError) { rb_raise(eDuckDBError, "failed to append");