From efe27652b4b039e6f0eda6f6f5c9c139d6762373 Mon Sep 17 00:00:00 2001 From: kanoi Date: Mon, 5 Jan 2015 05:43:33 +1100 Subject: [PATCH] ckdb - set mark base 32 code ascii sorted --- src/ckdb.h | 4 ++-- src/ckdb_data.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ckdb.h b/src/ckdb.h index 83e913e1..6d680eb3 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -1,5 +1,5 @@ /* - * Copyright 1995-2014 Andrew Smith + * Copyright 1995-2015 Andrew Smith * Copyright 2014 Con Kolivas * * This program is free software; you can redistribute it and/or modify it @@ -52,7 +52,7 @@ #define DB_VLOCK "1" #define DB_VERSION "0.9.6" -#define CKDB_VERSION DB_VERSION"-0.820" +#define CKDB_VERSION DB_VERSION"-0.821" #define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL_HERE __FILE__, __func__, __LINE__ diff --git a/src/ckdb_data.c b/src/ckdb_data.c index 57a0426b..85bb5c67 100644 --- a/src/ckdb_data.c +++ b/src/ckdb_data.c @@ -2870,7 +2870,7 @@ bool _marks_description(char *description, size_t siz, char *marktype, #define CODEBASE 32 #define CODESHIFT(_x) ((_x) >> 5) #define CODECHAR(_x) (codebase[((_x) & (CODEBASE-1))]) -static char codebase[] = "2a3b4c5d6e7f8g9hjklmnpqrstuvwxyz"; +static char codebase[] = "23456789abcdefghjkmnopqrstuvwxyz"; #define ASSERT3(condition) __maybe_unused static char codebase_length_must_be_CODEBASE[(condition)?1:-1] ASSERT3(sizeof(codebase) == (CODEBASE+1));