File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
15
15
* Fix BMP issues. (#1497 )
16
16
* Update typings to support jpg and addPage on NodeCanvasRenderingContext2D (#1509 )
17
17
* Fix assertion failure when using Visual Studio Code debugger to inspect Image prototype (#1534 )
18
+ * Fix signed/unsigned comparison warning introduced in 2.6.0, and function cast warnings with GCC8+
18
19
19
20
2.6.1
20
21
==================
Original file line number Diff line number Diff line change @@ -412,7 +412,7 @@ NAN_METHOD(Canvas::ToBuffer) {
412
412
if (info[0 ]->StrictEquals (Nan::New<String>(" raw" ).ToLocalChecked ())) {
413
413
cairo_surface_t *surface = canvas->surface ();
414
414
cairo_surface_flush (surface);
415
- if (canvas->nBytes () > node::Buffer::kMaxLength ) {
415
+ if (static_cast < uint32_t >( canvas->nBytes () ) > node::Buffer::kMaxLength ) {
416
416
Nan::ThrowError (" Data exceeds maximum buffer length." );
417
417
return ;
418
418
}
You can’t perform that action at this time.
0 commit comments