FreeCalypso > hg > freecalypso-tools
comparison uptools/libcoding/gsm7_encode.c @ 359:061f8d75083d
uptools/libcoding/gsm7_encode.c: bug found on review
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Sun, 04 Mar 2018 05:16:34 +0000 |
| parents | dbeb4a5628f5 |
| children | ec7e23d5151f |
comparison
equal
deleted
inserted
replaced
| 358:7154a231e4b5 | 359:061f8d75083d |
|---|---|
| 27 if (c & 0x80) { | 27 if (c & 0x80) { |
| 28 *op++ = 0x1B; | 28 *op++ = 0x1B; |
| 29 *op++ = c & 0x7F; | 29 *op++ = c & 0x7F; |
| 30 } else | 30 } else |
| 31 *op++ = c; | 31 *op++ = c; |
| 32 outcnt += n; | |
| 32 } | 33 } |
| 33 *outlenp = outcnt; | 34 *outlenp = outcnt; |
| 34 return(0); | 35 return(0); |
| 35 } | 36 } |
