summaryrefslogtreecommitdiff
path: root/src/TextPop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/TextPop.c')
-rw-r--r--src/TextPop.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/TextPop.c b/src/TextPop.c
index df877c4..3e8ef1f 100644
--- a/src/TextPop.c
+++ b/src/TextPop.c
@@ -26,7 +26,7 @@ in this Software without prior written authorization from The Open Group.
*/
-/* $XFree86: xc/lib/Xaw/TextPop.c,v 1.20 2001/12/14 19:54:44 dawes Exp $ */
+/* $XFree86: xc/lib/Xaw/TextPop.c,v 1.21 2003/10/23 21:33:54 tsi Exp $ */
/*
* This file is broken up into three sections one dealing with
@@ -866,7 +866,7 @@ DoSearch(struct SearchAndReplace *search)
#endif /* OLDXAW */
}
- dir = (XawTextScanDirection)
+ dir = (XawTextScanDirection)(unsigned long)
((XPointer)XawToggleGetCurrent(search->left_toggle) - R_OFFSET);
pos = XawTextSearch(tw, dir, &text);
@@ -1021,8 +1021,8 @@ Replace(struct SearchAndReplace *search, Bool once_only, Bool show_current)
else
replace.length = strlen(replace.ptr);
- dir = (XawTextScanDirection)
- XawToggleGetCurrent(search->left_toggle) - R_OFFSET;
+ dir = (XawTextScanDirection)(unsigned long)
+ ((XPointer)XawToggleGetCurrent(search->left_toggle) - R_OFFSET);
redisplay = !once_only || (once_only && !show_current);
ipos = XawTextGetInsertionPoint(tw);