Skip to content
Browse files

add cast to unsigned char*

  • Loading branch information...
1 parent c561def commit a75bfe0d05629ac9bd870bd357c201abad76e698 @snd snd committed Dec 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/jpeg.cpp
View
2 src/jpeg.cpp
@@ -99,7 +99,7 @@ Jpeg::New(const Arguments &args)
}
Local<Object> buffer = args[0]->ToObject();
- Jpeg *jpeg = new Jpeg(Buffer::Data(buffer), w, h, buf_type);
+ Jpeg *jpeg = new Jpeg((unsigned char*) Buffer::Data(buffer), w, h, buf_type);
jpeg->Wrap(args.This());
return args.This();
}

0 comments on commit a75bfe0

Please sign in to comment.
Something went wrong with that request. Please try again.