Alien-CFITSIO

 view release on metacpan or  search on metacpan

patch/cfitsio-4.6.2.patch  view on Meta::CPAN

*** cfitsio-4.6.2.orig/putcole.c	2025-03-26 14:19:36.000000000 -0400
--- cfitsio-4.6.2/putcole.c	2025-04-22 22:20:10.980557198 -0400
***************
*** 407,413 ****
         format in a temporary buffer that has been allocated for this purpose.
      */
      if (scale == 1. && zero == 0. && 
!        MACHINE == NATIVE && tcode == TFLOAT)
      {
          writeraw = 1;
          if (nelem < (LONGLONG)INT32_MAX) {
--- 407,413 ----
         format in a temporary buffer that has been allocated for this purpose.
      */
      if (scale == 1. && zero == 0. && 
!        CFITSIO_MACHINE == NATIVE && tcode == TFLOAT)
      {
          writeraw = 1;
          if (nelem < (LONGLONG)INT32_MAX) {
diff -rc cfitsio-4.6.2.orig/putcoli.c cfitsio-4.6.2/putcoli.c
*** cfitsio-4.6.2.orig/putcoli.c	2025-03-26 14:19:36.000000000 -0400
--- cfitsio-4.6.2/putcoli.c	2025-04-22 22:20:10.852556692 -0400
***************
*** 394,400 ****
        format in a temporary buffer that has been allocated for this purpose.
      */
      if (scale == 1. && zero == 0. &&
!        MACHINE == NATIVE && tcode == TSHORT)
      {
          writeraw = 1;
          if (nelem < (LONGLONG)INT32_MAX) {
--- 394,400 ----
        format in a temporary buffer that has been allocated for this purpose.
      */
      if (scale == 1. && zero == 0. &&
!        CFITSIO_MACHINE == NATIVE && tcode == TSHORT)
      {
          writeraw = 1;
          if (nelem < (LONGLONG)INT32_MAX) {
diff -rc cfitsio-4.6.2.orig/putcolj.c cfitsio-4.6.2/putcolj.c
*** cfitsio-4.6.2.orig/putcolj.c	2025-03-26 14:19:36.000000000 -0400
--- cfitsio-4.6.2/putcolj.c	2025-04-22 22:20:11.048557467 -0400
***************
*** 394,400 ****
         format in a temporary buffer that has been allocated for this purpose.
      */
      if (scale == 1. && zero == 0. && 
!        MACHINE == NATIVE && tcode == TLONG && LONGSIZE == 32)
      {
          writeraw = 1;
          if (nelem < (LONGLONG)INT32_MAX) {
--- 394,400 ----
         format in a temporary buffer that has been allocated for this purpose.
      */
      if (scale == 1. && zero == 0. && 
!        CFITSIO_MACHINE == NATIVE && tcode == TLONG && LONGSIZE == 32)
      {
          writeraw = 1;
          if (nelem < (LONGLONG)INT32_MAX) {
***************
*** 1398,1404 ****
         format in a temporary buffer that has been allocated for this purpose.
      */
      if (scale == 1. && zero == 0. && 
!        MACHINE == NATIVE && tcode == TLONGLONG)
      {
          writeraw = 1;
          if (nelem < (LONGLONG)INT32_MAX/8) {
--- 1398,1404 ----
         format in a temporary buffer that has been allocated for this purpose.
      */
      if (scale == 1. && zero == 0. && 
!        CFITSIO_MACHINE == NATIVE && tcode == TLONGLONG)
      {
          writeraw = 1;
          if (nelem < (LONGLONG)INT32_MAX/8) {
diff -rc cfitsio-4.6.2.orig/putcolk.c cfitsio-4.6.2/putcolk.c
*** cfitsio-4.6.2.orig/putcolk.c	2025-03-26 14:19:36.000000000 -0400
--- cfitsio-4.6.2/putcolk.c	2025-04-22 22:20:10.900556883 -0400
***************
*** 408,414 ****
         format in a temporary buffer that has been allocated for this purpose.
      */
      if (scale == 1. && zero == 0. && 
!        MACHINE == NATIVE && tcode == TLONG)
      {
          writeraw = 1;
          if (nelem < (LONGLONG)INT32_MAX) {
--- 408,414 ----
         format in a temporary buffer that has been allocated for this purpose.
      */
      if (scale == 1. && zero == 0. && 
!        CFITSIO_MACHINE == NATIVE && tcode == TLONG)
      {
          writeraw = 1;
          if (nelem < (LONGLONG)INT32_MAX) {
diff -rc cfitsio-4.6.2.orig/utilities/smem.c cfitsio-4.6.2/utilities/smem.c
*** cfitsio-4.6.2.orig/utilities/smem.c	2025-03-26 14:19:36.000000000 -0400
--- cfitsio-4.6.2/utilities/smem.c	2025-04-18 14:46:14.286524290 -0400
***************
*** 1,7 ****
  #include <stdio.h>
  #include <memory.h>
  #include <string.h>
! #ifdef __APPLE__
  #include <stdlib.h>
  #else
  #include <malloc.h>
--- 1,7 ----
  #include <stdio.h>
  #include <memory.h>
  #include <string.h>
! #if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) 
  #include <stdlib.h>
  #else
  #include <malloc.h>



( run in 1.891 second using v1.01-cache-2.11-cpan-39bf76dae61 )