Skip to content

Commit

Permalink
Workaround for an oddity in the OpenWATCOM compiler's handling of Boo…
Browse files Browse the repository at this point in the history
…leans
  • Loading branch information
Bill-Gray committed Jul 2, 2023
1 parent c8a1806 commit 9c94cdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions miscell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ const char *write_bit_string( char *ibuff, const uint64_t bits)

/* Very simple pattern matcher, using ? and * only */

bool pattern_match(const char* pattern, const char* string)
int pattern_match(const char* pattern, const char* string)
{
while( pattern[0])
if( pattern[0] == '*')
Expand All @@ -663,6 +663,6 @@ bool pattern_match(const char* pattern, const char* string)
const char *find_orb_version_jd( double *jd)
{
if( jd)
*jd = 2460121.5;
return( "2023 Jun 26");
*jd = 2460123.5;
return( "2023 Jun 28");
}
2 changes: 1 addition & 1 deletion mpc_obs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
#include "pl_cache.h"
#include "constant.h"

bool pattern_match(const char* pattern, const char* string); /* miscell.c */
int pattern_match(const char* pattern, const char* string); /* miscell.c */
int text_search_and_replace( char FAR *str, const char *oldstr,
const char *newstr); /* ephem0.cpp */
double utc_from_td( const double jdt, double *delta_t); /* ephem0.cpp */
Expand Down

0 comments on commit 9c94cdf

Please sign in to comment.