Changeset: 0947712cf6d8 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0947712cf6d8
Modified Files:
monetdb5/extras/jaql/json.c
Branch: Jul2012
Log Message:
unwrap: make division by zero calculation more obfuscated
try to lead Microsoft compiler around the garden by doing a calculation
that ends up being zero, perhaps it doesn't "see" now we're doing a
division by zero (on purpose)
diffs (12 lines):
diff --git a/monetdb5/extras/jaql/json.c b/monetdb5/extras/jaql/json.c
--- a/monetdb5/extras/jaql/json.c
+++ b/monetdb5/extras/jaql/json.c
@@ -1462,7 +1462,7 @@ JSONunwrap(Client cntxt, MalBlkPtr mb, M
break;
case 'n':
default:
- d = 0.1 / 0.0;
+ d = 0.1 / (1.0
- 1.0);
BUNins(r, &v,
&d, FALSE);
break;
}
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list