brainboxdotcc / DPP

C++ Discord API Bot Library - D++ is Lightweight and scalable for small and huge bots!
https://dpp.dev/
Apache License 2.0
1.04k stars 158 forks source link

fix: get size of object instead of pointer #1103

Closed VoltrexKeyva closed 5 months ago

VoltrexKeyva commented 5 months ago

The this keyword is evaluated to a pointer to an object of a given type so sizeof(this) returns the size of the pointer instead of the object so use sizeof(*this) instead.

Code change checklist

CLAassistant commented 5 months ago

CLA assistant check
All committers have signed the CLA.

netlify[bot] commented 5 months ago

Deploy Preview for dpp-dev ready!

Name Link
Latest commit ce4570bd5e9b7f680ebad9c977224e76bfef3048
Latest deploy log https://app.netlify.com/sites/dpp-dev/deploys/65e472669896960008195dc2
Deploy Preview https://deploy-preview-1103--dpp-dev.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.