From 3f8a70576b2a021461a11be6e62e6095c5686330 Mon Sep 17 00:00:00 2001 From: Niyarin Date: Wed, 1 Nov 2023 13:30:47 +0900 Subject: [PATCH] fix 32bit. --- src/cljam/io/sam/util/validator.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cljam/io/sam/util/validator.clj b/src/cljam/io/sam/util/validator.clj index 11c1f248..9cc7564d 100644 --- a/src/cljam/io/sam/util/validator.clj +++ b/src/cljam/io/sam/util/validator.clj @@ -96,8 +96,8 @@ (case type' "A" (when-not (and (char? value) (<= (int \!) (int value) (int \~))) ["Must be a char [!-~]."]) - "i" (when-not (and (integer? value) (<= -32767 value 32767)) - ["Must be 16 bit signed integer."]) + "i" (when-not (and (integer? value) (<= -2147483648 value 2147483647)) + ["Must be 32 bit signed integer."]) "f" (when-not (or (float? value) (integer? value)) ["Must be a float."]) "Z" (when-not (and (string? value) (re-matches #"[ !-~]*" value))