Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions video.c.m4
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ static VALUE Display_new(int index)
static VALUE DisplayMode_s_allocate(VALUE klass)
{
SDL_DisplayMode* mode;
VALUE obj = TypedData_Make_Struct(klass, SDL_DisplayMode, &SDL_DisplayMode_data_type, mode);
return obj;
return TypedData_Make_Struct(klass, SDL_DisplayMode, &SDL_DisplayMode_data_type, mode);
}

static VALUE DisplayMode_new(SDL_DisplayMode* mode)
Expand Down Expand Up @@ -2491,8 +2490,7 @@ static VALUE Surface_s_new(int argc, VALUE* argv, VALUE self)
static VALUE Rect_s_allocate(VALUE klass)
{
SDL_Rect* rect;
VALUE obj = TypedData_Make_Struct(klass, SDL_Rect, &SDL_Rect_data_type, rect);
return obj;
return TypedData_Make_Struct(klass, SDL_Rect, &SDL_Rect_data_type, rect);
}

/*
Expand Down Expand Up @@ -2595,8 +2593,7 @@ static VALUE Rect_union(VALUE self, VALUE other)
static VALUE Point_s_allocate(VALUE klass)
{
SDL_Point* point;
VALUE obj = TypedData_Make_Struct(klass, SDL_Point, &SDL_Point_data_type, point);
return obj;
return TypedData_Make_Struct(klass, SDL_Point, &SDL_Point_data_type, point);
}

/*
Expand Down