File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 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/).
1515* Fix BMP issues. (#1497 )
1616* Update typings to support jpg and addPage on NodeCanvasRenderingContext2D (#1509 )
1717* 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+
1819
19202.6.1
2021==================
Original file line number Diff line number Diff line change @@ -412,7 +412,7 @@ NAN_METHOD(Canvas::ToBuffer) {
412412 if (info[0 ]->StrictEquals (Nan::New<String>(" raw" ).ToLocalChecked ())) {
413413 cairo_surface_t *surface = canvas->surface ();
414414 cairo_surface_flush (surface);
415- if (canvas->nBytes () > node::Buffer::kMaxLength ) {
415+ if (static_cast < uint32_t >( canvas->nBytes () ) > node::Buffer::kMaxLength ) {
416416 Nan::ThrowError (" Data exceeds maximum buffer length." );
417417 return ;
418418 }
You can’t perform that action at this time.
0 commit comments