[PPL-devel] [GIT] ppl/ppl(floating_point): Use 0 instead of NULL.
Fabio Bossi
bossi at cs.unipr.it
Thu Sep 3 17:40:03 CEST 2009
Module: ppl/ppl
Branch: floating_point
Commit: f7230caad9fd947ee7f4206df54fbeca75a4273f
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=f7230caad9fd947ee7f4206df54fbeca75a4273f
Author: Fabio Bossi <bossi at cs.unipr.it>
Date: Thu Sep 3 17:42:50 2009 +0200
Use 0 instead of NULL.
---
...Difference_Floating_Point_Expression.inlines.hh | 4 ++--
src/Division_Floating_Point_Expression.inlines.hh | 4 ++--
...iplication_Floating_Point_Expression.inlines.hh | 4 ++--
src/Opposite_Floating_Point_Expression.inlines.hh | 2 +-
src/Sum_Floating_Point_Expression.inlines.hh | 4 ++--
5 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/Difference_Floating_Point_Expression.inlines.hh b/src/Difference_Floating_Point_Expression.inlines.hh
index 898c005..2a4a6ac 100644
--- a/src/Difference_Floating_Point_Expression.inlines.hh
+++ b/src/Difference_Floating_Point_Expression.inlines.hh
@@ -35,8 +35,8 @@ Difference_Floating_Point_Expression<FP_Interval_Type, FP_Format>
Floating_Point_Expression<FP_Interval_Type, FP_Format>* const x,
Floating_Point_Expression<FP_Interval_Type, FP_Format>* const y)
: first_operand(x), second_operand(y){
- assert(x != NULL);
- assert(y != NULL);
+ assert(x != 0);
+ assert(y != 0);
}
template <typename FP_Interval_Type, typename FP_Format>
diff --git a/src/Division_Floating_Point_Expression.inlines.hh b/src/Division_Floating_Point_Expression.inlines.hh
index 0d0c96b..45ce27e 100644
--- a/src/Division_Floating_Point_Expression.inlines.hh
+++ b/src/Division_Floating_Point_Expression.inlines.hh
@@ -34,8 +34,8 @@ Division_Floating_Point_Expression<FP_Interval_Type, FP_Format>
Floating_Point_Expression<FP_Interval_Type, FP_Format>* const num,
Floating_Point_Expression<FP_Interval_Type, FP_Format>* const den)
: first_operand(num), second_operand(den) {
- assert(num != NULL);
- assert(den != NULL);
+ assert(num != 0);
+ assert(den != 0);
}
template <typename FP_Interval_Type, typename FP_Format>
diff --git a/src/Multiplication_Floating_Point_Expression.inlines.hh b/src/Multiplication_Floating_Point_Expression.inlines.hh
index d3c35ce..a909e28 100644
--- a/src/Multiplication_Floating_Point_Expression.inlines.hh
+++ b/src/Multiplication_Floating_Point_Expression.inlines.hh
@@ -35,8 +35,8 @@ Multiplication_Floating_Point_Expression<FP_Interval_Type, FP_Format>
Floating_Point_Expression<FP_Interval_Type, FP_Format>* const x,
Floating_Point_Expression<FP_Interval_Type, FP_Format>* const y)
: first_operand(x), second_operand(y) {
- assert(x != NULL);
- assert(y != NULL);
+ assert(x != 0);
+ assert(y != 0);
}
template <typename FP_Interval_Type, typename FP_Format>
diff --git a/src/Opposite_Floating_Point_Expression.inlines.hh b/src/Opposite_Floating_Point_Expression.inlines.hh
index f559a24..92e3c1c 100644
--- a/src/Opposite_Floating_Point_Expression.inlines.hh
+++ b/src/Opposite_Floating_Point_Expression.inlines.hh
@@ -34,7 +34,7 @@ Opposite_Floating_Point_Expression(
Floating_Point_Expression<FP_Interval_Type, FP_Format>* const op)
: operand(op)
{
- assert(op != NULL);
+ assert(op != 0);
}
template <typename FP_Interval_Type, typename FP_Format>
diff --git a/src/Sum_Floating_Point_Expression.inlines.hh b/src/Sum_Floating_Point_Expression.inlines.hh
index 39cfbd7..355bd4b 100644
--- a/src/Sum_Floating_Point_Expression.inlines.hh
+++ b/src/Sum_Floating_Point_Expression.inlines.hh
@@ -35,8 +35,8 @@ Sum_Floating_Point_Expression<FP_Interval_Type, FP_Format>
Floating_Point_Expression<FP_Interval_Type, FP_Format>* const x,
Floating_Point_Expression<FP_Interval_Type, FP_Format>* const y)
: first_operand(x), second_operand(y) {
- assert(x != NULL);
- assert(y != NULL);
+ assert(x != 0);
+ assert(y != 0);
}
template <typename FP_Interval_Type, typename FP_Format>
More information about the PPL-devel
mailing list