Giter Site home page Giter Site logo

Comments (4)

priitj avatar priitj commented on June 22, 2024

The number in the error message is the field number. In case of that error, the returned value should be WG_ILLEGAL which does not decode to anything.

I can look into it if you're sure that you are passing the correct parameters. But I would need a reproducible, short example from you.

from whitedb.

aleksandergabriel avatar aleksandergabriel commented on June 22, 2024

If I presume that error is printed out right after the call I am as sure as possible that position number passed to function is not the same as number in error. I will try to create small example where error would be reproduced and send it to you as soon as possible.

from whitedb.

aleksandergabriel avatar aleksandergabriel commented on June 22, 2024

Unfortunately so far I was unable to reproduce error with any example I wrote. Therefore I am back at debugging full code and trying to catch exact line where error is printed out. So if I understand correctly if wrong filednumber if given to wg_get_field function returns WG_ILLEGAL and if that is passed to wg_decode_<> it would produce error or would it return some error value?

from whitedb.

priitj avatar priitj commented on June 22, 2024

I would recommend checking if wg_get_field() returns WG_ILLEGAL.

I know that the tutorial and maybe some other places contain lazy code where that check is not made but this is the most universal and safe way.

from whitedb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.