[GH-ISSUE #96] Some warnings in Core and CtrlLib #50

Open
opened 2026-05-05 03:36:17 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @izabala123 on GitHub (Sep 21, 2022).
Original GitHub issue: https://github.com/ultimatepp/ultimatepp/issues/96

  1. upp\uppsrc\core\Other.h(123): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
    --> This is because strlen() returns size_t, and it is used to set an int

  2. upp\uppsrc\core\Other.h(143): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
    --> This is because GetPackedSize() returns size_t, and it is used to set an int

  3. upp\uppsrc\CtrlLib/DropChoice.h(83): warning C4099: 'Upp::PopUpList::Popup': type name first seen using 'struct' now seen using 'class'
    --> This is because PopUp has been declared as 'struct', but later it is used as 'class'

Originally created by @izabala123 on GitHub (Sep 21, 2022). Original GitHub issue: https://github.com/ultimatepp/ultimatepp/issues/96 1. upp\uppsrc\core\Other.h(123): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data --> This is because strlen() returns size_t, and it is used to set an int 2. upp\uppsrc\core\Other.h(143): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data --> This is because GetPackedSize() returns size_t, and it is used to set an int 3. upp\uppsrc\CtrlLib/DropChoice.h(83): warning C4099: 'Upp::PopUpList::Popup': type name first seen using 'struct' now seen using 'class' --> This is because PopUp has been declared as 'struct', but later it is used as 'class'
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/ultimatepp#50
No description provided.