1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/devel/dprog/files/patch-range_checking.cc
Ying-Chieh Liao ade889c6ec fix build on -stable
Noticed by:	bento via kris
2004-04-12 03:25:49 +00:00

15 lines
505 B
C++

--- range_checking.cc.orig Mon Apr 12 11:10:54 2004
+++ range_checking.cc Mon Apr 12 11:11:04 2004
@@ -14,9 +14,9 @@
void
RangeCheckVisitor::visit (RExpr &rexpr)
{
- if (rexpr.begin_br()->is_less() and rexpr.end_br()->is_less())
+ if (rexpr.begin_br()->is_less() && rexpr.end_br()->is_less())
return;
- if (rexpr.begin_br()->is_greater() and rexpr.end_br()->is_greater())
+ if (rexpr.begin_br()->is_greater() && rexpr.end_br()->is_greater())
return;
throw new RangeError(rexpr);