Index: /issm/trunk-jpl/src/c/classes/Inputs/TransientInput.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/Inputs/TransientInput.cpp	(revision 27184)
+++ /issm/trunk-jpl/src/c/classes/Inputs/TransientInput.cpp	(revision 27185)
@@ -477,5 +477,5 @@
 		_error_("Input not found (is TransientInput sorted ?)");
 	}
-	if(!binary_search(&prevoffset,time-dt,this->timesteps,this->numtimesteps)){
+	if(!binary_search(&prevoffset,reCast<IssmDouble>(time-dt),this->timesteps,this->numtimesteps)){
 		_error_("Input not found (is TransientInput sorted ?)");
 	}
