Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix two places where VALUE is used as if it's an int. #4

merged 1 commit into from Aug 3, 2014
Changes from all commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.


Just for now

@@ -38,7 +38,7 @@ VALUE psd_native_mask_apply_bang(VALUE self) {
if (doc_x < 0 || doc_x >= doc_width || doc_y < 0 || doc_y > doc_height) {
alpha = 0;
} else {
alpha = mask_data[i];
alpha = FIX2INT(mask_data[i]);

color = (color & 0xffffff00) | (A(color) * alpha / 255);
@@ -1,7 +1,8 @@
#include "psd_native_ext.h"

VALUE psd_native_decode_rle_channel(VALUE self) {
int bytes, len, val;
VALUE val;
int bytes, len;
int i, j, k, l;

int height = FIX2INT(rb_funcall(self, rb_intern("height"), 0));
ProTip! Use n and p to navigate between commits in a pull request.