small fix
This commit is contained in:
parent
b90c9f309c
commit
5091901421
4
buffer.c
4
buffer.c
|
@ -221,7 +221,7 @@ char* b_cbhead(Buffer* const pBD) {
|
|||
* Called functions: N/A
|
||||
* Parameters:
|
||||
- pBuffer const pBD
|
||||
* Return value: short
|
||||
* Return value: char*
|
||||
*/
|
||||
char* b_setmark(Buffer* const pBD, short mark) {
|
||||
if (!pBD || mark < 0 || mark > pBD->addc_offset) { return NULL; }
|
||||
|
@ -333,7 +333,7 @@ pBuffer b_addc(pBuffer const pBD, char symbol) {
|
|||
*/
|
||||
char b_getc(Buffer* const pBD) {
|
||||
if (!pBD) { return R_FAIL2; }
|
||||
if (b_getcoffset(pBD) == pBD->addc_offset) {
|
||||
if (pBD->getc_offset == pBD->addc_offset) {
|
||||
pBD->eob = SET_EOB_FLAG;
|
||||
return R_FAIL1;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue