From b8ec64d2448de41c8a09d598784fa7d665e949d5 Mon Sep 17 00:00:00 2001 From: Paul Tucker Date: Wed, 13 Oct 1999 21:00:16 +0000 Subject: [PATCH] Correct cast on expression --- harbour/ChangeLog | 4 ++++ harbour/source/rtl/oldbox.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 018770cf5f..c82ee20e1e 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,7 @@ +19991013-17:45 EDT Paul Tucker + * source/rtl/oldbox.c + * Add parens so cast applies to entire expression + 19991013-22:37 GMT+1 Victor Szel * tests/rtl_test.prg * Column width adjusted. diff --git a/harbour/source/rtl/oldbox.c b/harbour/source/rtl/oldbox.c index 3b4c01694b..280dada803 100644 --- a/harbour/source/rtl/oldbox.c +++ b/harbour/source/rtl/oldbox.c @@ -42,7 +42,7 @@ HARBOUR HB___BOX( void ) if( ISNUM( 1 ) && ISNUM( 2 ) && ISNUM( 3 ) && ISNUM( 4 ) && ISCHAR( 5 ) ) hb_gtBox( hb_parni( 1 ), hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), - ( BYTE * ) frame ? frame : " " ); + ( BYTE * ) ( frame ? frame : " " ) ); } HARBOUR HB___BOXD( void )