FFstrbuf: change ffStrbufToUInt16 to more general function ffStrbufToUInt

This commit is contained in:
李通洲
2023-09-26 00:09:56 +08:00
parent a4bc07cba5
commit e4c1ec916b
6 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ int main(void)
//toNumber
VERIFY(ffStrbufToDouble(&strbuf) == 123456789.0);
VERIFY(ffStrbufToUInt16(&strbuf, 999) == 999); //overflow
VERIFY(ffStrbufToUInt(&strbuf, 999) == 123456789);
//countC