aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2006-01-10 08:08:14 +0000
committerLev Walkin <vlm@lionet.info>2006-01-10 08:08:14 +0000
commitc81dab15739f1fdb5d6abc1e9cd50b4986d3c232 (patch)
tree4311b715351e6d44dd38040499d6ef12ae5584f3
parentb1a15559b2c289cb2032307a42945893e38d01aa (diff)
proper shift
-rw-r--r--skeletons/GeneralizedTime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/skeletons/GeneralizedTime.c b/skeletons/GeneralizedTime.c
index aabe66d6..6934a820 100644
--- a/skeletons/GeneralizedTime.c
+++ b/skeletons/GeneralizedTime.c
@@ -326,7 +326,7 @@ asn_GT2time_frac(const GeneralizedTime_t *st, int *frac_value, int *frac_digits,
#undef B2T
#define B2F(var) do { \
unsigned ch = *buf; \
- if(ch < 0x30 && ch > 0x39) { \
+ if(ch < 0x30 || ch > 0x39) { \
errno = EINVAL; \
return -1; \
} else { \