author | Rekhesh Mohan <reks@iiap.res.in> | |
Thu, 8 Nov 2012 08:10:53 +0000 (13:40 +0530) | ||
committer | Rekhesh Mohan <reks@iiap.res.in> | |
Thu, 8 Nov 2012 08:10:53 +0000 (13:40 +0530) |
Conflicts:
ChangeLog.txt
configure.ac
src/filesys.c
src/fits2jpeg.c
src/image.c
ChangeLog.txt
configure.ac
src/filesys.c
src/fits2jpeg.c
src/image.c
1 | 2 | |||
---|---|---|---|---|
ChangeLog.txt | patch | | diff1 | | diff2 | | blob | history |
src/filesys.c | patch | | diff1 | | diff2 | | blob | history |
src/image.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc ChangeLog.txt
Simple merge
diff --cc src/filesys.c
--- 1/src/filesys.c
--- 2/src/filesys.c
+++ b/src/filesys.c
/*Header Definitions*/
#include "fits2jpeg.h"
- /*---------------------------------------------------------------------------*/
-/*---------------------------------------------------------------------------*/
+/*---------------------------------------------------------------------------*
+ * MAKE_DIR: Wrapper to mkdir() with some basic error checks
+ *---------------------------------------------------------------------------*/
int make_dir(char * folder, mode_t mode)
{
struct stat st;
diff --cc src/image.c
--- 1/src/image.c
--- 2/src/image.c
+++ b/src/image.c
/* the dynamic range is reduced to 255 for jpeg */
scl_data = (datamax - datamin)/(float)JMAXVAL;
+ /* we will end up with segfaults if scl_data = 0 */
- if (scl_data = 0) scl_data = 1;
++ if (scl_data == 0) scl_data = 1;
+
for (i = 0; i < npixels; ++i)
data[i] = (data[i] - datamin)/scl_data;