~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/int2str.cc

  • Committer: pcrews
  • Date: 2011-05-24 17:36:24 UTC
  • mfrom: (1099.4.232 drizzle)
  • Revision ID: pcrews@lucid32-20110524173624-mwr1bvq6fa1r01ao
Updated translations + 2011.05.18 tarball tag

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
   along with this program; if not, write to the Free Software
14
14
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
15
15
 
16
 
#include "config.h"
17
 
#include "drizzled/internal/m_string.h"
 
16
#include <config.h>
 
17
#include <drizzled/internal/m_string.h>
18
18
 
19
19
namespace drizzled
20
20
{
42
42
char *int10_to_str(int32_t val,char *dst,int radix)
43
43
{
44
44
  char buffer[65];
45
 
  register char *p;
46
45
  int32_t new_val;
47
46
  uint32_t uval = (uint32_t) val;
48
47
 
56
55
    }
57
56
  }
58
57
 
59
 
  p = &buffer[sizeof(buffer)-1];
 
58
  char* p = &buffer[sizeof(buffer)-1];
60
59
  *p = '\0';
61
60
  new_val= (int32_t) (uval / 10);
62
61
  *--p = '0'+ (char) (uval - (uint32_t) new_val * 10);