aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/reflist.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcrystfel/src/reflist.c b/libcrystfel/src/reflist.c
index b322e6e1..d60ee46e 100644
--- a/libcrystfel/src/reflist.c
+++ b/libcrystfel/src/reflist.c
@@ -167,6 +167,9 @@ RefList *reflist_new()
*/
Reflection *reflection_new(signed int h, signed int k, signed int l)
{
+ assert(abs(h)<512);
+ assert(abs(k)<512);
+ assert(abs(l)<512);
return new_node(SERIAL(h, k, l));
}