File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
1010### Changed
1111### Added
1212### Fixed
13+ * Fix building with gcc (#2559 )
1314
14153.2.2
1516==================
Original file line number Diff line number Diff line change @@ -643,7 +643,7 @@ Canvas::StreamPDFSync(const Napi::CallbackInfo& info) {
643643static uint32_t getSafeBufSize (Canvas* canvas) {
644644 // Don't allow the buffer size to exceed the size of the canvas (#674)
645645 // TODO not sure if this is really correct, but it fixed #674
646- return (std::min)((uint32_t )canvas->getWidth () * canvas->getHeight () * 4 , PAGE_SIZE);
646+ return (std::min)((uint32_t )canvas->getWidth () * canvas->getHeight () * 4 , ( uint32_t ) PAGE_SIZE);
647647}
648648
649649void
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class Canvas;
1919#include < vector>
2020
2121#ifndef PAGE_SIZE
22- #define PAGE_SIZE 4096u
22+ #define PAGE_SIZE 4096
2323#endif
2424
2525/*
You can’t perform that action at this time.
0 commit comments