Skip to contentSkip to conversation

include stdint.h explicitly for UINT16_MAX)

PATCH Applied Khem Raj 2 participants 2 messages May 20, 2017 – May 22, 2017

Subsystems (2)
lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 include stdint.h explicitly for UINT16_MAX)

Fixes

| tc_core.c:190:29: error: 'UINT16_MAX' undeclared (first use in this function); did you mean '__INT16_MAX__'?
|    if ((sz >> s->size_log) > UINT16_MAX) {
|                              ^~~~~~~~~~
---
 tc/tc_core.c | 1 +
 1 file changed, 1 insertion(+)
tc/tc_core.c +1 -0
index 7bbe0d7..821b741 100644
@@ -12,6 +12,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdint.h>
 #include <unistd.h>
 #include <syslog.h>
 #include <fcntl.h>
Signature · 1 line
2.13.0
#1 lore raw
Quoted 6 lines · On Sat, 20 May 2017 14:28:46 -0700 Khem Raj <[email protected]> wrote:

Fixes

| tc_core.c:190:29: error: 'UINT16_MAX' undeclared (first use in this function); did you mean '__INT16_MAX__'?
|    if ((sz >> s->size_log) > UINT16_MAX) {
|                              ^~~~~~~~~~

Applied.