lesson 23, step 3

This commit is contained in:
Carlos
2015-08-18 10:31:28 +02:00
parent 92ff191c3d
commit de3d442569
18 changed files with 124 additions and 127 deletions

View File

@@ -1,5 +1,5 @@
#include "string.h"
#include "../cpu/type.h"
#include <stdint.h>
/**
* K&R implementation
@@ -23,7 +23,7 @@ void hex_to_ascii(int n, char str[]) {
append(str, 'x');
char zeros = 0;
s32 tmp;
int32_t tmp;
int i;
for (i = 28; i > 0; i -= 4) {
tmp = (n >> i) & 0xF;