Skip to content

Commit

Permalink
Add gcc+4.8 to travis
Browse files Browse the repository at this point in the history
  • Loading branch information
weareu authored and kant2002 committed Oct 2, 2015
1 parent e3708ad commit 00d7e99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ node_js:
- "4.0"
- "4.1"
script: npm run travis
addons:
apt:
packages:
- gcc+4.8
3 changes: 2 additions & 1 deletion src/image/rotate_worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ void RotateWorker::Execute () {
const float nangle = cimg::mod(_degs, 360.0f);
if (cimg::mod(nangle, 90.0f) != 0) {
CImg<unsigned char> * res;
int channels = _cimg->spectrum();
size_t oldwidth = _cimg->width(),
oldheight = _cimg->height();
try {
// 2 pixels wider and taller
res = new CImg<unsigned char>(oldwidth + 2, oldheight + 2, 1, N_CHANNELS);
res = new CImg<unsigned char>(oldwidth + 2, oldheight + 2, 1, channels);
} catch (CImgException e) {
SetErrorMessage("Out of memory");
return;
Expand Down

0 comments on commit 00d7e99

Please sign in to comment.