Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many wanings about sign. #174

Open
maxsupermanhd opened this issue Oct 29, 2019 · 0 comments
Open

Many wanings about sign. #174

maxsupermanhd opened this issue Oct 29, 2019 · 0 comments

Comments

@maxsupermanhd
Copy link

jsmn.h: In function ‘jsmn_parse_primitive’:
jsmn.h:141:11: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
   start = parser->pos;
           ^~~~~~
jsmn.h:159:21: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
       parser->pos = start;
                     ^~~~~
jsmn.h:176:19: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
     parser->pos = start;
                   ^~~~~
jsmn.h:179:49: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
   jsmn_fill_token(token, JSMN_PRIMITIVE, start, parser->pos);
                                                 ^~~~~~
jsmn.h: In function ‘jsmn_parse_string’:
jsmn.h:195:15: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
   int start = parser->pos;
               ^~~~~~
jsmn.h:210:23: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
         parser->pos = start;
                       ^~~~~
jsmn.h:213:54: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
       jsmn_fill_token(token, JSMN_STRING, start + 1, parser->pos);
                                                      ^~~~~~
jsmn.h:244:27: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
             parser->pos = start;
                           ^~~~~
jsmn.h:253:23: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
         parser->pos = start;
                       ^~~~~
jsmn.h:258:17: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
   parser->pos = start;
                 ^~~~~
jsmn.h: In function ‘jsmn_parse’:
jsmn.h:270:15: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
   int count = parser->toknext;
               ^~~~~~
jsmn.h:302:22: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
       token->start = parser->pos;
                      ^~~~~~
jsmn.h:303:26: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
       parser->toksuper = parser->toknext - 1;
                          ^~~~~~
jsmn.h:334:16: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
       for (i = parser->toknext - 1; i >= 0; i--) {
                ^~~~~~
jsmn.h:341:24: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
           token->end = parser->pos + 1;
                        ^~~~~~
jsmn.h:374:26: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
       parser->toksuper = parser->toknext - 1;
                          ^~~~~~
jsmn.h:383:18: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
         for (i = parser->toknext - 1; i >= 0; i--) {
                  ^~~~~~
jsmn.h:441:14: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
     for (i = parser->toknext - 1; i >= 0; i--) {
              ^~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant