Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dcommander committed Feb 14, 2016
1 parent 03841e6 commit 18dcac4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion turbojpeg-jni.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C)2011-2015 D. R. Commander. All Rights Reserved.
* Copyright (C)2011-2016 D. R. Commander. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -758,6 +758,8 @@ JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress
if(scaledWidth<=width && scaledHeight<=height)
break;
}
if(i>=nsf)
_throwarg("Could not scale down to desired image dimensions");

bailif0(dstOffsets=(*env)->GetPrimitiveArrayCritical(env, jDstOffsets, 0));
bailif0(dstStrides=(*env)->GetPrimitiveArrayCritical(env, jDstStrides, 0));
Expand Down

0 comments on commit 18dcac4

Please sign in to comment.