[svn] commit: r2487 - /branches/trac256/src/lib/dns/util/binary_from_base16.h
BIND 10 source code commits
bind10-changes at lists.isc.org
Sun Jul 11 18:24:46 UTC 2010
Author: jinmei
Date: Sun Jul 11 18:24:46 2010
New Revision: 2487
Log:
compactioned the table a bit.
Modified:
branches/trac256/src/lib/dns/util/binary_from_base16.h
Modified: branches/trac256/src/lib/dns/util/binary_from_base16.h
==============================================================================
--- branches/trac256/src/lib/dns/util/binary_from_base16.h (original)
+++ branches/trac256/src/lib/dns/util/binary_from_base16.h Sun Jul 11 18:24:46 2010
@@ -48,15 +48,14 @@
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,-1,-1,-1,-1,-1,-1, // 30-3f
-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 40-4f
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 50-5f
- -1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 60-6f
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 // 70-7f
+ -1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1 // 60-6f
};
// metrowerks trips this assertion - how come?
#if ! defined(__MWERKS__)
- BOOST_STATIC_ASSERT(128 == sizeof(lookup_table));
+ BOOST_STATIC_ASSERT(0x70 == sizeof(lookup_table));
#endif
signed char value = -1;
- if((unsigned)t <= 127)
+ if((unsigned)t < sizeof(lookup_table))
value = lookup_table[(unsigned)t];
if(-1 == value) {
isc_throw(isc::BadValue,
More information about the bind10-changes
mailing list