From 578310dd0f74e755ff3311d3826bbfa9ba0b2bcf Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Mon, 16 Sep 2013 12:02:40 +0000 Subject: Fix Solaris warnings mentioned by Micha on fltk.coredev Sep 16 '13 in thread entitled "Re: STR 2636, clipboard notification". git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9977 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_x.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index aba288f81..6b894b93a 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -866,8 +866,8 @@ void Fl::copy(const char *stuff, int len, int clipboard) { //////////////////////////////////////////////////////////////// // Code for tracking clipboard changes: -static Time primary_timestamp = -1; -static Time clipboard_timestamp = -1; +static Time primary_timestamp = (Time)-1; +static Time clipboard_timestamp = (Time)-1; extern bool fl_clipboard_notify_empty(void); extern void fl_trigger_clipboard_notify(int source); @@ -949,8 +949,8 @@ void fl_clipboard_notify_change() { // Reset the timestamps if we've going idle so that you don't // get a bogus immediate trigger next time they're activated. if (fl_clipboard_notify_empty()) { - primary_timestamp = -1; - clipboard_timestamp = -1; + primary_timestamp = (Time)-1; + clipboard_timestamp = (Time)-1; } else { #if HAVE_XFIXES if (!have_xfixes) -- cgit v1.2.3