After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 730284 - Type mismatch in `lsm_itex_to_mathml`
Type mismatch in `lsm_itex_to_mathml`
Status: RESOLVED FIXED
Product: lasem
Classification: Other
Component: Other
git master
Other Mac OS
: Normal minor
: ---
Assigned To: lasem-maint
lasem-maint
Depends on:
Blocks:
 
 
Reported: 2014-05-16 23:14 UTC by gjtorikian
Modified: 2014-05-18 18:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description gjtorikian 2014-05-16 23:14:29 UTC
The header for lsm_itex_to_mathml looks like this:

```
lsm_itex_to_mathml (const char *itex, int size)
```

It ends up acting as a clever wrapper to 

```
extern char * itex2MML_parse (const char * buffer, unsigned long length);
```

I think the type discrepancy between the Lasem's `int size` and itex2MML's `unsigned long length` could cause problems.  It seems like the only reason for this is to be able to pass in -1 to indicate that the function should determine the size. NULL could also work for this purpose, while still creating an unsigned long value for itex2MML.
Comment 1 Emmanuel Pacaud 2014-05-18 18:52:04 UTC
I guess you are right. It's fixed in master.

https://git.gnome.org/browse/lasem/commit/?id=85e1ce96f9e9eb631d78b22a1c32cef8af12ec3c