Skip to content

Commit bf9f656

Browse files
committed
revise parameters of chewing_userphrase_get_frequency()
1 parent 4ffcdd1 commit bf9f656

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/chewingio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ CHEWING_API int chewing_userphrase_get(ChewingContext *ctx,
531531

532532
CHEWING_API int chewing_userphrase_get_freq(ChewingContext *ctx,
533533
const char phrase_buf[], const char bopomofo_buf[],
534-
int *orig_freq, int *max_freq, int *user_freq, int *time);
534+
unsigned int *orig_freq, unsigned int *max_freq, unsigned int *user_freq, unsigned int *time);
535535

536536
CHEWING_API int chewing_userphrase_add(ChewingContext *ctx, const char *phrase_buf, const char *bopomofo_buf);
537537

src/chewingio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1981,7 +1981,7 @@ CHEWING_API int chewing_userphrase_get(ChewingContext *ctx,
19811981

19821982
CHEWING_API int chewing_userphrase_get_freq(ChewingContext *ctx,
19831983
const char phrase_buf[], const char bopomofo_buf[],
1984-
int *orig_freq, int *max_freq, int *user_freq, int *time)
1984+
unsigned int *orig_freq, unsigned int *max_freq, unsigned int *user_freq, unsigned int *time)
19851985
{
19861986
ChewingData *pgdata = NULL;
19871987

0 commit comments

Comments
 (0)