diff --git a/Arrangement_on_surface_2/include/CGAL/Sweep_line_2/Sweep_line_2_impl.h b/Arrangement_on_surface_2/include/CGAL/Sweep_line_2/Sweep_line_2_impl.h
index 7130314c6c0..d6233521379 100644
--- a/Arrangement_on_surface_2/include/CGAL/Sweep_line_2/Sweep_line_2_impl.h
+++ b/Arrangement_on_surface_2/include/CGAL/Sweep_line_2/Sweep_line_2_impl.h
@@ -260,6 +260,7 @@ void Sweep_line_2
::_handle_right_curves ()
(static_cast(*currentOne),
static_cast(*prevOne)))
{
+ this->m_currentEvent->set_intersection();
_intersect(*prevOne, *currentOne);
}
diff --git a/Nef_3/include/CGAL/OFF_to_nef_3.h b/Nef_3/include/CGAL/OFF_to_nef_3.h
index 14a2cf4c174..fdbab0a199a 100644
--- a/Nef_3/include/CGAL/OFF_to_nef_3.h
+++ b/Nef_3/include/CGAL/OFF_to_nef_3.h
@@ -129,7 +129,7 @@ OFF_to_nef_3 (std::istream &i_st, Nef_3 &nef_union, bool verb=false)
// declarations and defaults
std::size_t discarded_facets=0;
- long idx;
+ std::size_t idx;
#ifdef CGAL_NEF_OFF_TO_NEF_TIMER
CGAL::Timer t_convert, t_union;