Browse Source

Pacify C compiler

This eliminates a warning about a missing return
statement. The code was correct though, because
hex2num() is guarded by is_hexdigit().
tags/1.0
Timo Röhling 11 years ago
parent
commit
37c6dc7b0d
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      postsrsd.c

+ 1
- 0
postsrsd.c View File

85
   if (c >= '0' && c <= '9') return c - '0';
85
   if (c >= '0' && c <= '9') return c - '0';
86
   if (c >= 'a' && c <= 'f') return c - 'a' + 10;
86
   if (c >= 'a' && c <= 'f') return c - 'a' + 10;
87
   if (c >= 'A' && c <= 'F') return c - 'A' + 10;
87
   if (c >= 'A' && c <= 'F') return c - 'A' + 10;
88
+  return 0;
88
 }
89
 }
89
 
90
 
90
 static char num2hex (char c)
91
 static char num2hex (char c)

Loading…
Cancel
Save