Skip to content

Commit b8c4127

Browse files
committed
fixed: linux incompatability
1 parent 209b713 commit b8c4127

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

headers/stdint.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/* stdint */
1212
#ifdef __WINDOWS
1313
// https://docs.microsoft.com/en-us/cpp/cpp/data-type-ranges?view=vs-2019
14-
typedef __int32 uint32_t;
14+
typedef unsigned __int32 uint32_t;
1515
#else
1616
#include <stdint.h> // For standard int types
1717
#endif

tea.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ bool encrypt_decrypt(int mode, char *key, int flags,
100100
else
101101
decode ((uint32_t *) d, (uint32_t *) key);
102102

103-
printf("\nkey:%u %u %u %u data:%u %u\n",
104-
key[0],key[1],key[2],key[3],d[0],d[1]);
103+
/*printf("\nkey:%u %u %u %u data:%u %u\n",
104+
key[0],key[1],key[2],key[3],d[0],d[1]);*/
105105

106106
// Write back
107107
if ((len = write (outf,d,DATA_SIZE)) < 0){

0 commit comments

Comments
 (0)