gnuastro-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[task #16288] Warp: warn users when WCSLIB version is <7.12


From: Pedram Ashofteh-Ardakani
Subject: [task #16288] Warp: warn users when WCSLIB version is <7.12
Date: Wed, 29 Mar 2023 07:55:30 -0400 (EDT)

Follow-up Comment #6, task #16288 (project gnuastro):

Oops, I found out the condition has a logical bug. For example, version 8.10
wouldn't pass the test correctly, since ver[1] < 12 and there's an && in the
condition. To make it right, I suggest this alternative:


if( (ver[0]<7) || (ver[0]==7 && ver[1]<12) ) exit(1);


So now, if the major version number is less than 7, WCSLIB is definitely old.
But, if it the major version is 7 AND the minor is less than 12, again, it is
old. It is considered as recent otherwise.

Did I get it right Labib?


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/task/?16288>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]