Skip to content

samples/admin/secdom/secdom.c contains implicit type casts #54

Open
@Leyrer-PNP

Description

secdom.c:455:17: warning: conversion from 'long unsigned int' to 'WORD' {aka 'short unsigned int'} may change value [-Wconversion]
  455 |     ValueLength -= sizeof(WORD);
      |     ~~~~~~~~~~~~^~~~~~~~~~~~~~~
secdom.c:491:35: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
  491 |         *pInfoLen = strlen(*pInfo)+1;
      |                     ~~~~~~~~~~~~~~^~

Casts should be made explicit to get rid of compiler warnings.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions